diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-11 00:42:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-11 00:42:26 +0100 |
commit | 5b40342d2d5bc19445e6abccef6931bdd3a03c3b (patch) | |
tree | 89f408685e6da02074817c49af1d1f02fb39e6eb /crates/hir_ty/src | |
parent | eccd0efedb230985c582edbf9d272bf5f0224acf (diff) | |
parent | 5f2efae3ba29df77ef481cdda10b337a8f91d153 (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]>
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 6 |
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 | } |