diff options
author | Shotaro Yamada <[email protected]> | 2019-10-14 09:21:38 +0100 |
---|---|---|
committer | Shotaro Yamada <[email protected]> | 2019-10-14 09:21:38 +0100 |
commit | b462eb96b867cd38c60fb3d94ffd7688cec70f21 (patch) | |
tree | 11646ed45ac51a08ff50bc3b78a00f1c5b846f7f /crates | |
parent | 965ca0d271bdb467ec1f7fe309094aff8cac6aaa (diff) |
import make_mut_arc_slice
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/ty/lower.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/lower.rs b/crates/ra_hir/src/ty/lower.rs index 2f9a2ee05..639518f27 100644 --- a/crates/ra_hir/src/ty/lower.rs +++ b/crates/ra_hir/src/ty/lower.rs | |||
@@ -22,6 +22,7 @@ use crate::{ | |||
22 | resolve::{Resolver, TypeNs}, | 22 | resolve::{Resolver, TypeNs}, |
23 | ty::Adt, | 23 | ty::Adt, |
24 | type_ref::{TypeBound, TypeRef}, | 24 | type_ref::{TypeBound, TypeRef}, |
25 | util::make_mut_arc_slice, | ||
25 | BuiltinType, Const, Enum, EnumVariant, Function, ModuleDef, Path, Static, Struct, StructField, | 26 | BuiltinType, Const, Enum, EnumVariant, Function, ModuleDef, Path, Static, Struct, StructField, |
26 | Trait, TypeAlias, Union, | 27 | Trait, TypeAlias, Union, |
27 | }; | 28 | }; |
@@ -390,7 +391,7 @@ impl TraitRef { | |||
390 | ) -> Self { | 391 | ) -> Self { |
391 | let mut substs = TraitRef::substs_from_path(db, resolver, segment, resolved); | 392 | let mut substs = TraitRef::substs_from_path(db, resolver, segment, resolved); |
392 | if let Some(self_ty) = explicit_self_ty { | 393 | if let Some(self_ty) = explicit_self_ty { |
393 | crate::util::make_mut_arc_slice(&mut substs.0, |substs| { | 394 | make_mut_arc_slice(&mut substs.0, |substs| { |
394 | substs[0] = self_ty; | 395 | substs[0] = self_ty; |
395 | }); | 396 | }); |
396 | } | 397 | } |