Skip to content

Commit ce797de

Browse files
committed
Update used_trait_imports
1 parent b38af18 commit ce797de

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
@@ -361,7 +361,7 @@ rustc_queries! {
361361
}
362362

363363
Other {
364-
query used_trait_imports(_: DefId) -> Lrc<DefIdSet> {}
364+
query used_trait_imports(_: DefId) -> &'tcx DefIdSet {}
365365
}
366366

367367
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)