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
cfg
flycheck
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
hir_ty Merge #8371 2021-04-06 16:12:30 +00:00
ide
ide_assists
ide_completion
ide_db
ide_ssr
mbe
parser
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api
proc_macro_srv
proc_macro_test
profile
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
text_edit
toolchain
tt
vfs Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an IndexSet 2021-04-06 16:03:57 +03:00
vfs-notify