diff options
author | Jonas Schievink <[email protected]> | 2021-04-11 00:41:40 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-04-11 00:41:40 +0100 |
commit | 5f2efae3ba29df77ef481cdda10b337a8f91d153 (patch) | |
tree | 99f100765e6e696b6eb840403084e1fe229cdb74 /crates/hir_ty | |
parent | bd675c8a8bdd3fda239bee3d3f31acd8679655b9 (diff) |
Include more info in assert
Diffstat (limited to 'crates/hir_ty')
-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 | } |