about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/lib.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-11 10:38:54 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-30 19:54:21 +0200
commitee567fe1b1188077743263bebfefc3d2b7cdbcd2 (patch)
tree03c3f9e6c0bf0d0f1abb769af2b31aee3266224c /compiler/rustc_ast_lowering/src/lib.rs
parent10fb4b2fe538df29ee9729f060db0ca74f6c28fb (diff)
downloadrust-ee567fe1b1188077743263bebfefc3d2b7cdbcd2.tar.gz
rust-ee567fe1b1188077743263bebfefc3d2b7cdbcd2.zip
Remove StableVec.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/lib.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index 7202774292f..a9950b82928 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -44,7 +44,6 @@ use rustc_ast::{self as ast, *};
 use rustc_ast_pretty::pprust;
 use rustc_data_structures::captures::Captures;
 use rustc_data_structures::fx::{FxHashMap, FxHashSet};
-use rustc_data_structures::stable_hasher::StableVec;
 use rustc_data_structures::sync::Lrc;
 use rustc_errors::{struct_span_err, Applicability};
 use rustc_hir as hir;
@@ -506,7 +505,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
         for (k, v) in self.resolver.trait_map().into_iter() {
             if let Some(Some(hir_id)) = self.node_id_to_hir_id.get(k) {
                 let map = trait_map.entry(hir_id.owner).or_default();
-                map.insert(hir_id.local_id, StableVec::new(v.to_vec()));
+                map.insert(hir_id.local_id, v.into_boxed_slice());
             }
         }