@@ -109,10 +109,12 @@ pub use plumbing::{IntoQueryParam, TyCtxtAt, TyCtxtEnsure, TyCtxtEnsureWithValue
109
109
// Queries marked with `fatal_cycle` do not need the latter implementation,
110
110
// as they will raise an fatal error on query cycles instead.
111
111
rustc_queries ! {
112
+ /// This exists purely for testing the interactions between delay_span_bug and incremental.
112
113
query trigger_delay_span_bug( key: DefId ) -> ( ) {
113
- desc { "triggering a delay span bug" }
114
+ desc { "triggering a delay span bug for testing incremental " }
114
115
}
115
116
117
+ /// Collects the list of all tools registered using `#![register_tool]`.
116
118
query registered_tools( _: ( ) ) -> & ' tcx ty:: RegisteredTools {
117
119
arena_cache
118
120
desc { "compute registered tools for crate" }
@@ -286,6 +288,7 @@ rustc_queries! {
286
288
}
287
289
}
288
290
291
+ /// The root query triggering all analysis passes like typeck or borrowck.
289
292
query analysis( key: ( ) ) -> Result <( ) , ErrorGuaranteed > {
290
293
eval_always
291
294
desc { "running analysis passes on this crate" }
@@ -1778,10 +1781,17 @@ rustc_queries! {
1778
1781
desc { "calculating the missing lang items in a crate" }
1779
1782
separate_provide_extern
1780
1783
}
1784
+
1785
+ /// The visible parent map is a map from every item to a visible parent.
1786
+ /// It prefers the shortest visible path to an item.
1787
+ /// Used for diagnostics, for example path trimming.
1788
+ /// The parents are modules, enums or traits.
1781
1789
query visible_parent_map( _: ( ) ) -> & ' tcx DefIdMap <DefId > {
1782
1790
arena_cache
1783
1791
desc { "calculating the visible parent map" }
1784
1792
}
1793
+ /// Collects the "trimmed", shortest accessible paths to all items for diagnostics.
1794
+ /// See the [provider docs](`rustc_middle::ty::print::trimmed_def_paths`) for more info.
1785
1795
query trimmed_def_paths( _: ( ) ) -> & ' tcx FxHashMap <DefId , Symbol > {
1786
1796
arena_cache
1787
1797
desc { "calculating trimmed def paths" }
0 commit comments