diff options
author | Florian Diebold <[email protected]> | 2021-03-15 20:02:34 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-03-16 16:58:17 +0000 |
commit | ce2cae45b5242d59b744018dd79bc2ab74670edc (patch) | |
tree | dc4ed41e25efae7b6f76fcf18b6b6eb68170e7a9 /crates/hir_ty/src/infer/coerce.rs | |
parent | 00c80b208bcbe52b13bbd03cb62e24b2d2075edf (diff) |
Rename Substs -> Substitution
Diffstat (limited to 'crates/hir_ty/src/infer/coerce.rs')
-rw-r--r-- | crates/hir_ty/src/infer/coerce.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir_ty/src/infer/coerce.rs index 137419264..b1f98c507 100644 --- a/crates/hir_ty/src/infer/coerce.rs +++ b/crates/hir_ty/src/infer/coerce.rs | |||
@@ -7,7 +7,9 @@ | |||
7 | use chalk_ir::{Mutability, TyVariableKind}; | 7 | use chalk_ir::{Mutability, TyVariableKind}; |
8 | use hir_def::lang_item::LangItemTarget; | 8 | use hir_def::lang_item::LangItemTarget; |
9 | 9 | ||
10 | use crate::{autoderef, traits::Solution, Interner, Obligation, Substs, TraitRef, Ty, TyKind}; | 10 | use crate::{ |
11 | autoderef, traits::Solution, Interner, Obligation, Substitution, TraitRef, Ty, TyKind, | ||
12 | }; | ||
11 | 13 | ||
12 | use super::{InEnvironment, InferenceContext}; | 14 | use super::{InEnvironment, InferenceContext}; |
13 | 15 | ||
@@ -134,7 +136,7 @@ impl<'a> InferenceContext<'a> { | |||
134 | return None; | 136 | return None; |
135 | } | 137 | } |
136 | 138 | ||
137 | let substs = Substs::build_for_generics(&generic_params) | 139 | let substs = Substitution::build_for_generics(&generic_params) |
138 | .push(from_ty.clone()) | 140 | .push(from_ty.clone()) |
139 | .push(to_ty.clone()) | 141 | .push(to_ty.clone()) |
140 | .build(); | 142 | .build(); |