Skip to content

Commit 28482db

Browse files
committed
Update used_trait_imports
1 parent b1398a0 commit 28482db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ macro_rules! arena_types {
1414
rustc::hir::def_id::DefId,
1515
rustc::ty::subst::SubstsRef<$tcx>
1616
)>,
17-
[few] mir_keys: rustc::util::nodemap::DefIdSet,
17+
[few, decode] mir_keys: rustc::util::nodemap::DefIdSet,
1818
[decode] specialization_graph: rustc::traits::specialization_graph::Graph,
1919
[] region_scope_tree: rustc::middle::region::ScopeTree,
2020
[] item_local_set: rustc::util::nodemap::ItemLocalSet,

src/librustc/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ rustc_queries! {
359359
}
360360

361361
Other {
362-
query used_trait_imports(_: DefId) -> Lrc<DefIdSet> {}
362+
query used_trait_imports(_: DefId) -> &'tcx DefIdSet {}
363363
}
364364

365365
TypeChecking {

src/librustc_typeck/check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ fn has_typeck_tables<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
808808

809809
fn used_trait_imports<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
810810
def_id: DefId)
811-
-> Lrc<DefIdSet> {
812-
tcx.typeck_tables_of(def_id).used_trait_imports.clone()
811+
-> &'tcx DefIdSet {
812+
&*tcx.typeck_tables_of(def_id).used_trait_imports
813813
}
814814

815815
fn typeck_tables_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,

0 commit comments

Comments
 (0)