diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-20 12:48:27 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-20 12:48:27 +0000 |
commit | fbc2cf2b6999b9c694e03993e62531cf9ef3d9b0 (patch) | |
tree | a476ee7ed8ef381806f6b7959dd256379e25133e /crates/ra_hir_ty/src/traits | |
parent | 65377620245bda207145742595a7bd878e14f7ec (diff) | |
parent | 1234dda9ee60a19a83a9664c2e1208247566b49b (diff) |
Merge #2609
2609: Use generic ItemLoc for impls r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_ty/src/traits')
-rw-r--r-- | crates/ra_hir_ty/src/traits/chalk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/traits/chalk.rs b/crates/ra_hir_ty/src/traits/chalk.rs index dd4fa9664..5eb032d86 100644 --- a/crates/ra_hir_ty/src/traits/chalk.rs +++ b/crates/ra_hir_ty/src/traits/chalk.rs | |||
@@ -673,7 +673,7 @@ fn impl_block_datum( | |||
673 | let bound_vars = Substs::bound_vars(&generic_params); | 673 | let bound_vars = Substs::bound_vars(&generic_params); |
674 | let trait_ref = trait_ref.subst(&bound_vars); | 674 | let trait_ref = trait_ref.subst(&bound_vars); |
675 | let trait_ = trait_ref.trait_; | 675 | let trait_ = trait_ref.trait_; |
676 | let impl_type = if impl_id.lookup(db).container.krate == krate { | 676 | let impl_type = if impl_id.lookup(db).container.module(db).krate == krate { |
677 | chalk_rust_ir::ImplType::Local | 677 | chalk_rust_ir::ImplType::Local |
678 | } else { | 678 | } else { |
679 | chalk_rust_ir::ImplType::External | 679 | chalk_rust_ir::ImplType::External |