diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 10:38:54 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-30 19:54:21 +0200 |
| commit | ee567fe1b1188077743263bebfefc3d2b7cdbcd2 (patch) | |
| tree | 03c3f9e6c0bf0d0f1abb769af2b31aee3266224c /compiler/rustc_ast_lowering/src/lib.rs | |
| parent | 10fb4b2fe538df29ee9729f060db0ca74f6c28fb (diff) | |
| download | rust-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.rs | 3 |
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()); } } |
