diff options
Diffstat (limited to 'crates/ra_hir_ty/src/infer/expr.rs')
-rw-r--r-- | crates/ra_hir_ty/src/infer/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/infer/expr.rs b/crates/ra_hir_ty/src/infer/expr.rs index 011c6c5c6..8be567917 100644 --- a/crates/ra_hir_ty/src/infer/expr.rs +++ b/crates/ra_hir_ty/src/infer/expr.rs | |||
@@ -8,7 +8,7 @@ use hir_def::{ | |||
8 | expr::{Array, BinaryOp, Expr, ExprId, Literal, Statement, UnaryOp}, | 8 | expr::{Array, BinaryOp, Expr, ExprId, Literal, Statement, UnaryOp}, |
9 | path::{GenericArg, GenericArgs}, | 9 | path::{GenericArg, GenericArgs}, |
10 | resolver::resolver_for_expr, | 10 | resolver::resolver_for_expr, |
11 | AdtId, ContainerId, Lookup, StructFieldId, | 11 | AdtId, AssocContainerId, Lookup, StructFieldId, |
12 | }; | 12 | }; |
13 | use hir_expand::name::{name, Name}; | 13 | use hir_expand::name::{name, Name}; |
14 | use ra_syntax::ast::RangeOp; | 14 | use ra_syntax::ast::RangeOp; |
@@ -676,7 +676,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
676 | // add obligation for trait implementation, if this is a trait method | 676 | // add obligation for trait implementation, if this is a trait method |
677 | match def { | 677 | match def { |
678 | CallableDef::FunctionId(f) => { | 678 | CallableDef::FunctionId(f) => { |
679 | if let ContainerId::TraitId(trait_) = f.lookup(self.db).container { | 679 | if let AssocContainerId::TraitId(trait_) = f.lookup(self.db).container { |
680 | // construct a TraitDef | 680 | // construct a TraitDef |
681 | let substs = | 681 | let substs = |
682 | a_ty.parameters.prefix(generics(self.db, trait_.into()).len()); | 682 | a_ty.parameters.prefix(generics(self.db, trait_.into()).len()); |