rust/crates
bors[bot] e6a1c9ca60
Merge #8371
8371: Don't use HirDisplayWrapper when displaying SourceCode r=matklad a=Veykril

The issue was basically that when displaying for `DisplayTarget::SourceCode` some `hir_fmt` functions would create `HirDisplayWrapper`s which would then `fmt` these triggering the Display panic since `fmt::Display` can't fail the same way as `HirDisplay`. Simple fix is to just use `hir_fmt` directly. Should probably write that down somewhere in source, looking for a good spot to put that right now.

Fixes #8077, Fixes #8370


Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-04-06 16:12:30 +00:00
..
base_db internal: track missing .check_cancelled 2021-03-29 21:38:23 +03:00
cfg Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
hir_def infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
hir_expand Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
hir_ty Merge #8371 2021-04-06 16:12:30 +00:00
ide Merge #8245 2021-04-05 12:30:20 +00:00
ide_assists Merge #8339 2021-04-05 12:19:25 +00:00
ide_completion internal: document hypothetical completion problem 2021-04-05 16:27:45 +03:00
ide_db Convert Into to From assist 2021-04-03 15:48:35 +01:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
parser Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08:00
proc_macro_srv Fix parse u128 bug in proc-macro 2021-03-31 19:50:36 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile internal: revive google_cpu_profile infra 2021-03-30 17:29:43 +03:00
project_model feat: show errors from cargo metadata and initial cargo check in the status bar 2021-04-06 18:08:05 +03:00
rust-analyzer Merge #8375 2021-04-06 15:09:38 +00:00
stdx feat: show errors from cargo metadata and initial cargo check in the status bar 2021-04-06 18:08:05 +03:00
syntax Use arrayvec 0.7 to avoid perf regression in 0.6.1 2021-04-05 12:58:35 -04:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
vfs Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an IndexSet 2021-04-06 16:03:57 +03:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00