aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-04-11 00:42:26 +0100
committerGitHub <[email protected]>2021-04-11 00:42:26 +0100
commit5b40342d2d5bc19445e6abccef6931bdd3a03c3b (patch)
tree89f408685e6da02074817c49af1d1f02fb39e6eb
parenteccd0efedb230985c582edbf9d272bf5f0224acf (diff)
parent5f2efae3ba29df77ef481cdda10b337a8f91d153 (diff)
Merge #8465
8465: Include more info in assert r=jonas-schievink a=jonas-schievink This helped find https://github.com/rust-analyzer/rust-analyzer/issues/8464 changelog skip bors r+ Co-authored-by: Jonas Schievink <[email protected]>
-rw-r--r--crates/hir_ty/src/method_resolution.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs
index ece884241..6178b36c8 100644
--- a/crates/hir_ty/src/method_resolution.rs
+++ b/crates/hir_ty/src/method_resolution.rs
@@ -22,8 +22,8 @@ use crate::{
22 primitive::{self, FloatTy, IntTy, UintTy}, 22 primitive::{self, FloatTy, IntTy, UintTy},
23 static_lifetime, 23 static_lifetime,
24 utils::all_super_traits, 24 utils::all_super_traits,
25 AdtId, Canonical, CanonicalVarKinds, DebruijnIndex, ForeignDefId, InEnvironment, Interner, 25 AdtId, Canonical, CanonicalVarKinds, DebruijnIndex, ForeignDefId, HirDisplay, InEnvironment,
26 Scalar, Substitution, TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyExt, TyKind, 26 Interner, Scalar, Substitution, TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyExt, TyKind,
27}; 27};
28 28
29/// This is used as a key for indexing impls. 29/// This is used as a key for indexing impls.
@@ -259,7 +259,7 @@ impl InherentImpls {
259 259
260 let self_ty = db.impl_self_ty(impl_id); 260 let self_ty = db.impl_self_ty(impl_id);
261 let fp = TyFingerprint::for_inherent_impl(self_ty.skip_binders()); 261 let fp = TyFingerprint::for_inherent_impl(self_ty.skip_binders());
262 always!(fp.is_some()); 262 always!(fp.is_some(), "no fingerprint for {}", self_ty.skip_binders().display(db));
263 if let Some(fp) = fp { 263 if let Some(fp) = fp {
264 map.entry(fp).or_default().push(impl_id); 264 map.entry(fp).or_default().push(impl_id);
265 } 265 }