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.
@@ -87,7 +87,7 @@ use rustc_index::IndexVec;
8787use rustc_lint_defs:: LintId ;
8888use rustc_macros:: rustc_queries;
8989use rustc_query_system:: ich:: StableHashingContext ;
90- use rustc_query_system:: query:: { QueryMode , QueryStackDeferred , QueryState } ;
90+ use rustc_query_system:: query:: { QueryMode , QueryState } ;
9191use rustc_session:: Limits ;
9292use rustc_session:: config:: { EntryFnType , OptLevel , OutputFilenames , SymbolManglingVersion } ;
9393use rustc_session:: cstore:: {
@@ -160,7 +160,7 @@ pub mod plumbing;
160160// The result type of each query must implement `Clone`, and additionally
161161// `ty::query::values::Value`, which produces an appropriate placeholder
162162// (error) value if the query resulted in a query cycle.
163- // Queries marked with `fatal_cycle ` do not need the latter implementation,
163+ // Queries marked with `cycle_fatal ` do not need the latter implementation,
164164// as they will raise an fatal error on query cycles instead.
165165rustc_queries ! {
166166 /// This exists purely for testing the interactions between delayed bugs and incremental.
@@ -584,7 +584,7 @@ rustc_queries! {
584584 }
585585
586586 query is_panic_runtime( _: CrateNum ) -> bool {
587- fatal_cycle
587+ cycle_fatal
588588 desc { "checking if the crate is_panic_runtime" }
589589 separate_provide_extern
590590 }
@@ -1315,7 +1315,7 @@ rustc_queries! {
13151315 /// Return the set of (transitive) callees that may result in a recursive call to `key`,
13161316 /// if we were able to walk all callees.
13171317 query mir_callgraph_cyclic( key: LocalDefId ) -> & ' tcx Option <UnordSet <LocalDefId >> {
1318- fatal_cycle
1318+ cycle_fatal
13191319 arena_cache
13201320 desc { |tcx|
13211321 "computing (transitive) callees of `{}` that may recurse" ,
@@ -1326,7 +1326,7 @@ rustc_queries! {
13261326
13271327 /// Obtain all the calls into other local functions
13281328 query mir_inliner_callees( key: ty:: InstanceKind <' tcx>) -> & ' tcx [ ( DefId , GenericArgsRef <' tcx>) ] {
1329- fatal_cycle
1329+ cycle_fatal
13301330 desc { |tcx|
13311331 "computing all local function calls in `{}`" ,
13321332 tcx. def_path_str( key. def_id( ) ) ,
@@ -1822,31 +1822,31 @@ rustc_queries! {
18221822 }
18231823
18241824 query is_compiler_builtins( _: CrateNum ) -> bool {
1825- fatal_cycle
1825+ cycle_fatal
18261826 desc { "checking if the crate is_compiler_builtins" }
18271827 separate_provide_extern
18281828 }
18291829 query has_global_allocator( _: CrateNum ) -> bool {
18301830 // This query depends on untracked global state in CStore
18311831 eval_always
1832- fatal_cycle
1832+ cycle_fatal
18331833 desc { "checking if the crate has_global_allocator" }
18341834 separate_provide_extern
18351835 }
18361836 query has_alloc_error_handler( _: CrateNum ) -> bool {
18371837 // This query depends on untracked global state in CStore
18381838 eval_always
1839- fatal_cycle
1839+ cycle_fatal
18401840 desc { "checking if the crate has_alloc_error_handler" }
18411841 separate_provide_extern
18421842 }
18431843 query has_panic_handler( _: CrateNum ) -> bool {
1844- fatal_cycle
1844+ cycle_fatal
18451845 desc { "checking if the crate has_panic_handler" }
18461846 separate_provide_extern
18471847 }
18481848 query is_profiler_runtime( _: CrateNum ) -> bool {
1849- fatal_cycle
1849+ cycle_fatal
18501850 desc { "checking if a crate is `#![profiler_runtime]`" }
18511851 separate_provide_extern
18521852 }
@@ -1855,22 +1855,22 @@ rustc_queries! {
18551855 cache_on_disk_if { true }
18561856 }
18571857 query required_panic_strategy( _: CrateNum ) -> Option <PanicStrategy > {
1858- fatal_cycle
1858+ cycle_fatal
18591859 desc { "getting a crate's required panic strategy" }
18601860 separate_provide_extern
18611861 }
18621862 query panic_in_drop_strategy( _: CrateNum ) -> PanicStrategy {
1863- fatal_cycle
1863+ cycle_fatal
18641864 desc { "getting a crate's configured panic-in-drop strategy" }
18651865 separate_provide_extern
18661866 }
18671867 query is_no_builtins( _: CrateNum ) -> bool {
1868- fatal_cycle
1868+ cycle_fatal
18691869 desc { "getting whether a crate has `#![no_builtins]`" }
18701870 separate_provide_extern
18711871 }
18721872 query symbol_mangling_version( _: CrateNum ) -> SymbolManglingVersion {
1873- fatal_cycle
1873+ cycle_fatal
18741874 desc { "getting a crate's symbol mangling version" }
18751875 separate_provide_extern
18761876 }
0 commit comments