rust/crates/hir_ty/src
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
..
diagnostics infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
infer infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
tests Fix block inner item defined in macro 2021-04-01 03:45:21 +08:00
traits Move Ty accessors to TyExt 2021-04-06 13:58:48 +02:00
autoderef.rs Move ProjectionTy methods to extension trait 2021-04-05 21:58:01 +02:00
builder.rs Move Ty accessors to TyExt 2021-04-06 13:58:48 +02:00
chalk_cast.rs Introduce GenericArg like in Chalk 2021-04-03 11:17:13 +02:00
chalk_ext.rs Remove TyExt::dyn_trait_ref 2021-04-06 13:58:51 +02:00
db.rs Add chalk_ir::Const to TyKind::Array 2021-04-06 11:45:41 +02:00
diagnostics.rs
display.rs Panic when creating a HirDisplayWrapper with DisplayTarget::SourceCode 2021-04-06 14:42:34 +02:00
infer.rs infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
lib.rs Move Ty accessors to TyExt 2021-04-06 13:58:48 +02:00
lower.rs infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
method_resolution.rs Move Ty accessors to TyExt 2021-04-06 13:58:48 +02:00
op.rs Rename TyKind::Unknown to Error 2021-04-05 15:39:06 +03:00
primitive.rs
test_db.rs
tests.rs Access a body's block def maps via a method 2021-04-04 03:03:18 +02:00
traits.rs Pass interner to ProjectionTy::self_type_parameter 2021-04-05 17:37:24 +03:00
types.rs Add chalk_ir::Const to TyKind::Array 2021-04-06 11:45:41 +02:00
utils.rs infer: remove record_field_resolutions field 2021-04-06 17:59:18 +02:00
walk.rs Add chalk_ir::Const to TyKind::Array 2021-04-06 11:45:41 +02:00