2828//! - `desc { ... }`: Sets the human-readable description for diagnostics and profiling. Required for every query.
2929//! - `arena_cache`: Use an arena for in-memory caching of the query result.
3030//! - `cache_on_disk_if { ... }`: Cache the query result to disk if the provided block evaluates to true.
31- //! - `fatal_cycle `: If a dependency cycle is detected, abort compilation with a fatal error.
31+ //! - `cycle_fatal `: If a dependency cycle is detected, abort compilation with a fatal error.
3232//! - `cycle_delay_bug`: If a dependency cycle is detected, emit a delayed bug instead of aborting immediately.
3333//! - `cycle_stash`: If a dependency cycle is detected, stash the error for later handling.
3434//! - `no_hash`: Do not hash the query result for incremental compilation; just mark as dirty if recomputed.
@@ -88,7 +88,7 @@ use rustc_index::IndexVec;
8888use rustc_lint_defs:: LintId ;
8989use rustc_macros:: rustc_queries;
9090use rustc_query_system:: ich:: StableHashingContext ;
91- use rustc_query_system:: query:: { QueryMode , QueryStackDeferred , QueryState } ;
91+ use rustc_query_system:: query:: { QueryMode , QueryState } ;
9292use rustc_session:: Limits ;
9393use rustc_session:: config:: { EntryFnType , OptLevel , OutputFilenames , SymbolManglingVersion } ;
9494use rustc_session:: cstore:: {
@@ -161,7 +161,7 @@ pub mod plumbing;
161161// The result type of each query must implement `Clone`, and additionally
162162// `ty::query::values::Value`, which produces an appropriate placeholder
163163// (error) value if the query resulted in a query cycle.
164- // Queries marked with `fatal_cycle ` do not need the latter implementation,
164+ // Queries marked with `cycle_fatal ` do not need the latter implementation,
165165// as they will raise an fatal error on query cycles instead.
166166rustc_queries ! {
167167 /// Caches the expansion of a derive proc macro, e.g. `#[derive(Serialize)]`.
@@ -596,7 +596,7 @@ rustc_queries! {
596596 }
597597
598598 query is_panic_runtime( _: CrateNum ) -> bool {
599- fatal_cycle
599+ cycle_fatal
600600 desc { "checking if the crate is_panic_runtime" }
601601 separate_provide_extern
602602 }
@@ -1327,7 +1327,7 @@ rustc_queries! {
13271327 /// Return the set of (transitive) callees that may result in a recursive call to `key`,
13281328 /// if we were able to walk all callees.
13291329 query mir_callgraph_cyclic( key: LocalDefId ) -> & ' tcx Option <UnordSet <LocalDefId >> {
1330- fatal_cycle
1330+ cycle_fatal
13311331 arena_cache
13321332 desc { |tcx|
13331333 "computing (transitive) callees of `{}` that may recurse" ,
@@ -1338,7 +1338,7 @@ rustc_queries! {
13381338
13391339 /// Obtain all the calls into other local functions
13401340 query mir_inliner_callees( key: ty:: InstanceKind <' tcx>) -> & ' tcx [ ( DefId , GenericArgsRef <' tcx>) ] {
1341- fatal_cycle
1341+ cycle_fatal
13421342 desc { |tcx|
13431343 "computing all local function calls in `{}`" ,
13441344 tcx. def_path_str( key. def_id( ) ) ,
@@ -1834,31 +1834,31 @@ rustc_queries! {
18341834 }
18351835
18361836 query is_compiler_builtins( _: CrateNum ) -> bool {
1837- fatal_cycle
1837+ cycle_fatal
18381838 desc { "checking if the crate is_compiler_builtins" }
18391839 separate_provide_extern
18401840 }
18411841 query has_global_allocator( _: CrateNum ) -> bool {
18421842 // This query depends on untracked global state in CStore
18431843 eval_always
1844- fatal_cycle
1844+ cycle_fatal
18451845 desc { "checking if the crate has_global_allocator" }
18461846 separate_provide_extern
18471847 }
18481848 query has_alloc_error_handler( _: CrateNum ) -> bool {
18491849 // This query depends on untracked global state in CStore
18501850 eval_always
1851- fatal_cycle
1851+ cycle_fatal
18521852 desc { "checking if the crate has_alloc_error_handler" }
18531853 separate_provide_extern
18541854 }
18551855 query has_panic_handler( _: CrateNum ) -> bool {
1856- fatal_cycle
1856+ cycle_fatal
18571857 desc { "checking if the crate has_panic_handler" }
18581858 separate_provide_extern
18591859 }
18601860 query is_profiler_runtime( _: CrateNum ) -> bool {
1861- fatal_cycle
1861+ cycle_fatal
18621862 desc { "checking if a crate is `#![profiler_runtime]`" }
18631863 separate_provide_extern
18641864 }
@@ -1867,22 +1867,22 @@ rustc_queries! {
18671867 cache_on_disk_if { true }
18681868 }
18691869 query required_panic_strategy( _: CrateNum ) -> Option <PanicStrategy > {
1870- fatal_cycle
1870+ cycle_fatal
18711871 desc { "getting a crate's required panic strategy" }
18721872 separate_provide_extern
18731873 }
18741874 query panic_in_drop_strategy( _: CrateNum ) -> PanicStrategy {
1875- fatal_cycle
1875+ cycle_fatal
18761876 desc { "getting a crate's configured panic-in-drop strategy" }
18771877 separate_provide_extern
18781878 }
18791879 query is_no_builtins( _: CrateNum ) -> bool {
1880- fatal_cycle
1880+ cycle_fatal
18811881 desc { "getting whether a crate has `#![no_builtins]`" }
18821882 separate_provide_extern
18831883 }
18841884 query symbol_mangling_version( _: CrateNum ) -> SymbolManglingVersion {
1885- fatal_cycle
1885+ cycle_fatal
18861886 desc { "getting a crate's symbol mangling version" }
18871887 separate_provide_extern
18881888 }
0 commit comments