mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Update used_trait_imports
This commit is contained in:
@@ -14,7 +14,7 @@ macro_rules! arena_types {
|
||||
rustc::hir::def_id::DefId,
|
||||
rustc::ty::subst::SubstsRef<$tcx>
|
||||
)>,
|
||||
[few] mir_keys: rustc::util::nodemap::DefIdSet,
|
||||
[few, decode] mir_keys: rustc::util::nodemap::DefIdSet,
|
||||
[decode] specialization_graph: rustc::traits::specialization_graph::Graph,
|
||||
[] region_scope_tree: rustc::middle::region::ScopeTree,
|
||||
[] item_local_set: rustc::util::nodemap::ItemLocalSet,
|
||||
|
||||
@@ -359,7 +359,7 @@
|
||||
}
|
||||
|
||||
Other {
|
||||
query used_trait_imports(_: DefId) -> Lrc<DefIdSet> {}
|
||||
query used_trait_imports(_: DefId) -> &'tcx DefIdSet {}
|
||||
}
|
||||
|
||||
TypeChecking {
|
||||
|
||||
@@ -808,8 +808,8 @@ fn has_typeck_tables<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
|
||||
fn used_trait_imports<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
def_id: DefId)
|
||||
-> Lrc<DefIdSet> {
|
||||
tcx.typeck_tables_of(def_id).used_trait_imports.clone()
|
||||
-> &'tcx DefIdSet {
|
||||
&*tcx.typeck_tables_of(def_id).used_trait_imports
|
||||
}
|
||||
|
||||
fn typeck_tables_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
|
||||
Reference in New Issue
Block a user