mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Include more info in assert
This commit is contained in:
parent
bd675c8a8b
commit
5f2efae3ba
1 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@ use crate::{
|
||||||
primitive::{self, FloatTy, IntTy, UintTy},
|
primitive::{self, FloatTy, IntTy, UintTy},
|
||||||
static_lifetime,
|
static_lifetime,
|
||||||
utils::all_super_traits,
|
utils::all_super_traits,
|
||||||
AdtId, Canonical, CanonicalVarKinds, DebruijnIndex, ForeignDefId, InEnvironment, Interner,
|
AdtId, Canonical, CanonicalVarKinds, DebruijnIndex, ForeignDefId, HirDisplay, InEnvironment,
|
||||||
Scalar, Substitution, TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyExt, TyKind,
|
Interner, Scalar, Substitution, TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyExt, TyKind,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// This is used as a key for indexing impls.
|
/// This is used as a key for indexing impls.
|
||||||
|
@ -259,7 +259,7 @@ impl InherentImpls {
|
||||||
|
|
||||||
let self_ty = db.impl_self_ty(impl_id);
|
let self_ty = db.impl_self_ty(impl_id);
|
||||||
let fp = TyFingerprint::for_inherent_impl(self_ty.skip_binders());
|
let fp = TyFingerprint::for_inherent_impl(self_ty.skip_binders());
|
||||||
always!(fp.is_some());
|
always!(fp.is_some(), "no fingerprint for {}", self_ty.skip_binders().display(db));
|
||||||
if let Some(fp) = fp {
|
if let Some(fp) = fp {
|
||||||
map.entry(fp).or_default().push(impl_id);
|
map.entry(fp).or_default().push(impl_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue