@@ -610,7 +610,7 @@ rustc_queries! {
610610 }
611611
612612 Other {
613- query reachable_set( _: CrateNum ) -> Lrc < HirIdSet > {
613+ query reachable_set( _: CrateNum ) -> & ' tcx HirIdSet {
614614 desc { "reachability" }
615615 }
616616
@@ -642,7 +642,7 @@ rustc_queries! {
642642 query lookup_stability( _: DefId ) -> Option <& ' tcx attr:: Stability > { }
643643 query lookup_const_stability( _: DefId ) -> Option <& ' tcx attr:: ConstStability > { }
644644 query lookup_deprecation_entry( _: DefId ) -> Option <DeprecationEntry > { }
645- query item_attrs( _: DefId ) -> Lrc < [ ast:: Attribute ] > { }
645+ query item_attrs( _: DefId ) -> & ' tcx [ ast:: Attribute ] { }
646646 }
647647
648648 Codegen {
@@ -652,7 +652,7 @@ rustc_queries! {
652652 }
653653
654654 Other {
655- query fn_arg_names( _: DefId ) -> Vec < ast:: Name > { }
655+ query fn_arg_names( _: DefId ) -> & ' tcx [ ast:: Name ] { }
656656 /// Gets the rendered value of the specified constant or associated constant.
657657 /// Used by rustdoc.
658658 query rendered_const( _: DefId ) -> String { }
@@ -699,7 +699,7 @@ rustc_queries! {
699699 desc { |tcx| "building specialization graph of trait `{}`" , tcx. def_path_str( key) }
700700 cache_on_disk_if { true }
701701 }
702- query object_safety_violations( key: DefId ) -> Vec < traits:: ObjectSafetyViolation > {
702+ query object_safety_violations( key: DefId ) -> & ' tcx [ traits:: ObjectSafetyViolation ] {
703703 desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
704704 }
705705
@@ -1047,7 +1047,7 @@ rustc_queries! {
10471047 desc { "looking up all possibly unused extern crates" }
10481048 }
10491049 query names_imported_by_glob_use( _: DefId )
1050- -> Lrc < FxHashSet <ast:: Name > > {
1050+ -> & ' tcx FxHashSet <ast:: Name > {
10511051 eval_always
10521052 }
10531053
@@ -1075,19 +1075,19 @@ rustc_queries! {
10751075 /// correspond to a publicly visible symbol in `cnum` machine code.
10761076 /// - The `exported_symbols` sets of different crates do not intersect.
10771077 query exported_symbols( _: CrateNum )
1078- -> Arc < Vec < ( ExportedSymbol <' tcx>, SymbolExportLevel ) >> {
1078+ -> & ' tcx [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] {
10791079 desc { "exported_symbols" }
10801080 }
10811081 }
10821082
10831083 Codegen {
10841084 query collect_and_partition_mono_items( _: CrateNum )
1085- -> ( Arc < DefIdSet > , Arc < Vec < Arc < CodegenUnit <' tcx>>>> ) {
1085+ -> ( & ' tcx DefIdSet , & ' tcx [ CodegenUnit <' tcx>] ) {
10861086 eval_always
10871087 desc { "collect_and_partition_mono_items" }
10881088 }
10891089 query is_codegened_item( _: DefId ) -> bool { }
1090- query codegen_unit( _: Symbol ) -> Arc < CodegenUnit <' tcx> > {
1090+ query codegen_unit( _: Symbol ) -> & ' tcx CodegenUnit <' tcx> {
10911091 desc { "codegen_unit" }
10921092 }
10931093 query backend_optimization_level( _: CrateNum ) -> OptLevel {
0 commit comments