@@ -610,7 +610,7 @@ rustc_queries! {
610
610
}
611
611
612
612
Other {
613
- query reachable_set( _: CrateNum ) -> Lrc < HirIdSet > {
613
+ query reachable_set( _: CrateNum ) -> & ' tcx HirIdSet {
614
614
desc { "reachability" }
615
615
}
616
616
@@ -642,7 +642,7 @@ rustc_queries! {
642
642
query lookup_stability( _: DefId ) -> Option <& ' tcx attr:: Stability > { }
643
643
query lookup_const_stability( _: DefId ) -> Option <& ' tcx attr:: ConstStability > { }
644
644
query lookup_deprecation_entry( _: DefId ) -> Option <DeprecationEntry > { }
645
- query item_attrs( _: DefId ) -> Lrc < [ ast:: Attribute ] > { }
645
+ query item_attrs( _: DefId ) -> & ' tcx [ ast:: Attribute ] { }
646
646
}
647
647
648
648
Codegen {
@@ -652,7 +652,7 @@ rustc_queries! {
652
652
}
653
653
654
654
Other {
655
- query fn_arg_names( _: DefId ) -> Vec < ast:: Name > { }
655
+ query fn_arg_names( _: DefId ) -> & ' tcx [ ast:: Name ] { }
656
656
/// Gets the rendered value of the specified constant or associated constant.
657
657
/// Used by rustdoc.
658
658
query rendered_const( _: DefId ) -> String { }
@@ -699,7 +699,7 @@ rustc_queries! {
699
699
desc { |tcx| "building specialization graph of trait `{}`" , tcx. def_path_str( key) }
700
700
cache_on_disk_if { true }
701
701
}
702
- query object_safety_violations( key: DefId ) -> Vec < traits:: ObjectSafetyViolation > {
702
+ query object_safety_violations( key: DefId ) -> & ' tcx [ traits:: ObjectSafetyViolation ] {
703
703
desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
704
704
}
705
705
@@ -1047,7 +1047,7 @@ rustc_queries! {
1047
1047
desc { "looking up all possibly unused extern crates" }
1048
1048
}
1049
1049
query names_imported_by_glob_use( _: DefId )
1050
- -> Lrc < FxHashSet <ast:: Name > > {
1050
+ -> & ' tcx FxHashSet <ast:: Name > {
1051
1051
eval_always
1052
1052
}
1053
1053
@@ -1075,19 +1075,19 @@ rustc_queries! {
1075
1075
/// correspond to a publicly visible symbol in `cnum` machine code.
1076
1076
/// - The `exported_symbols` sets of different crates do not intersect.
1077
1077
query exported_symbols( _: CrateNum )
1078
- -> Arc < Vec < ( ExportedSymbol <' tcx>, SymbolExportLevel ) >> {
1078
+ -> & ' tcx [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] {
1079
1079
desc { "exported_symbols" }
1080
1080
}
1081
1081
}
1082
1082
1083
1083
Codegen {
1084
1084
query collect_and_partition_mono_items( _: CrateNum )
1085
- -> ( Arc < DefIdSet > , Arc < Vec < Arc < CodegenUnit <' tcx>>>> ) {
1085
+ -> ( & ' tcx DefIdSet , & ' tcx [ CodegenUnit <' tcx>] ) {
1086
1086
eval_always
1087
1087
desc { "collect_and_partition_mono_items" }
1088
1088
}
1089
1089
query is_codegened_item( _: DefId ) -> bool { }
1090
- query codegen_unit( _: Symbol ) -> Arc < CodegenUnit <' tcx> > {
1090
+ query codegen_unit( _: Symbol ) -> & ' tcx CodegenUnit <' tcx> {
1091
1091
desc { "codegen_unit" }
1092
1092
}
1093
1093
query backend_optimization_level( _: CrateNum ) -> OptLevel {
0 commit comments