Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir.rs')
-rw-r--r--crates/hir-ty/src/mir.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/hir-ty/src/mir.rs b/crates/hir-ty/src/mir.rs
index 06a4236e0a..9c727cb4ed 100644
--- a/crates/hir-ty/src/mir.rs
+++ b/crates/hir-ty/src/mir.rs
@@ -158,7 +158,10 @@ impl<V, T> ProjectionElem<V, T> {
subst.at(Interner, 0).assert_ty_ref(Interner).clone()
}
_ => {
- never!("Overloaded deref on type {} is not a projection", base.display(db));
+ never!(
+ "Overloaded deref on type {} is not a projection",
+ base.display(db, db.crate_graph()[krate].edition)
+ );
TyKind::Error.intern(Interner)
}
},