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/display.rs | |
parent | 00c80b208bcbe52b13bbd03cb62e24b2d2075edf (diff) |
Rename Substs -> Substitution
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r-- | crates/hir_ty/src/display.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs index c572bb114..7ce0f864c 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs | |||
@@ -20,7 +20,7 @@ use crate::{ | |||
20 | db::HirDatabase, from_assoc_type_id, from_foreign_def_id, from_placeholder_idx, primitive, | 20 | db::HirDatabase, from_assoc_type_id, from_foreign_def_id, from_placeholder_idx, primitive, |
21 | to_assoc_type_id, traits::chalk::from_chalk, utils::generics, AdtId, AliasTy, CallableDefId, | 21 | to_assoc_type_id, traits::chalk::from_chalk, utils::generics, AdtId, AliasTy, CallableDefId, |
22 | CallableSig, GenericPredicate, ImplTraitId, Interner, Lifetime, Obligation, OpaqueTy, | 22 | CallableSig, GenericPredicate, ImplTraitId, Interner, Lifetime, Obligation, OpaqueTy, |
23 | ProjectionTy, Scalar, Substs, TraitRef, Ty, TyKind, | 23 | ProjectionTy, Scalar, Substitution, TraitRef, Ty, TyKind, |
24 | }; | 24 | }; |
25 | 25 | ||
26 | pub struct HirFormatter<'a> { | 26 | pub struct HirFormatter<'a> { |
@@ -562,7 +562,7 @@ impl HirDisplay for Ty { | |||
562 | } | 562 | } |
563 | TypeParamProvenance::ArgumentImplTrait => { | 563 | TypeParamProvenance::ArgumentImplTrait => { |
564 | let bounds = f.db.generic_predicates_for_param(id); | 564 | let bounds = f.db.generic_predicates_for_param(id); |
565 | let substs = Substs::type_params_for_generics(f.db, &generics); | 565 | let substs = Substitution::type_params_for_generics(f.db, &generics); |
566 | write_bounds_like_dyn_trait_with_prefix( | 566 | write_bounds_like_dyn_trait_with_prefix( |
567 | "impl", | 567 | "impl", |
568 | &bounds.iter().map(|b| b.clone().subst(&substs)).collect::<Vec<_>>(), | 568 | &bounds.iter().map(|b| b.clone().subst(&substs)).collect::<Vec<_>>(), |