Give more descriptive names to queries.
This commit is contained in:
parent
f65f506d60
commit
a395d2a5de
5 changed files with 6 additions and 6 deletions
|
@ -426,7 +426,7 @@ rustc_queries! {
|
|||
&'tcx Steal<IndexVec<mir::Promoted, mir::Body<'tcx>>>
|
||||
) {
|
||||
no_hash
|
||||
desc { |tcx| "processing MIR for `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
desc { |tcx| "promoting constants in MIR for `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
}
|
||||
|
||||
query closure_typeinfo(key: LocalDefId) -> ty::ClosureTypeInfo<'tcx> {
|
||||
|
|
|
@ -18,7 +18,7 @@ LL | async fn foo(x: u32) -> u32 {
|
|||
#3 [mir_built] building MIR for `foo`
|
||||
#4 [unsafety_check_result] unsafety-checking `foo`
|
||||
#5 [mir_const] preparing `foo` for borrow checking
|
||||
#6 [mir_promoted] processing MIR for `foo`
|
||||
#6 [mir_promoted] promoting constants in MIR for `foo`
|
||||
#7 [mir_borrowck] borrow-checking `foo`
|
||||
#8 [type_of] computing type of `foo::{opaque#0}`
|
||||
#9 [check_mod_item_types] checking item types in top-level module
|
||||
|
|
|
@ -9,7 +9,7 @@ note: ...which requires borrow-checking `cycle1`...
|
|||
|
|
||||
LL | fn cycle1() -> impl Clone {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...which requires processing MIR for `cycle1`...
|
||||
note: ...which requires promoting constants in MIR for `cycle1`...
|
||||
--> $DIR/auto-trait-leak.rs:12:1
|
||||
|
|
||||
LL | fn cycle1() -> impl Clone {
|
||||
|
@ -55,7 +55,7 @@ note: ...which requires borrow-checking `cycle2`...
|
|||
|
|
||||
LL | fn cycle2() -> impl Clone {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...which requires processing MIR for `cycle2`...
|
||||
note: ...which requires promoting constants in MIR for `cycle2`...
|
||||
--> $DIR/auto-trait-leak.rs:19:1
|
||||
|
|
||||
LL | fn cycle2() -> impl Clone {
|
||||
|
|
|
@ -9,5 +9,5 @@ error: the compiler unexpectedly panicked. this is a bug.
|
|||
|
||||
query stack during panic:
|
||||
#0 [mir_const] preparing `multiple_storage` for borrow checking
|
||||
#1 [mir_promoted] processing MIR for `multiple_storage`
|
||||
#1 [mir_promoted] promoting constants in MIR for `multiple_storage`
|
||||
end of query stack
|
||||
|
|
|
@ -29,7 +29,7 @@ note: ...which requires borrow-checking `Alpha::V3::{constant#0}`...
|
|||
|
|
||||
LL | V3 = Self::V1 {} as u8 + 2,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...which requires processing MIR for `Alpha::V3::{constant#0}`...
|
||||
note: ...which requires promoting constants in MIR for `Alpha::V3::{constant#0}`...
|
||||
--> $DIR/self-in-enum-definition.rs:5:10
|
||||
|
|
||||
LL | V3 = Self::V1 {} as u8 + 2,
|
||||
|
|
Loading…
Add table
Reference in a new issue