From b462eb96b867cd38c60fb3d94ffd7688cec70f21 Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Mon, 14 Oct 2019 17:21:38 +0900 Subject: import make_mut_arc_slice --- crates/ra_hir/src/ty/lower.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/ra_hir') 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::{ resolve::{Resolver, TypeNs}, ty::Adt, type_ref::{TypeBound, TypeRef}, + util::make_mut_arc_slice, BuiltinType, Const, Enum, EnumVariant, Function, ModuleDef, Path, Static, Struct, StructField, Trait, TypeAlias, Union, }; @@ -390,7 +391,7 @@ impl TraitRef { ) -> Self { let mut substs = TraitRef::substs_from_path(db, resolver, segment, resolved); if let Some(self_ty) = explicit_self_ty { - crate::util::make_mut_arc_slice(&mut substs.0, |substs| { + make_mut_arc_slice(&mut substs.0, |substs| { substs[0] = self_ty; }); } -- cgit v1.2.3