Skip to content

Commit a395d2a

Browse files
committed
Give more descriptive names to queries.
1 parent f65f506 commit a395d2a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ rustc_queries! {
426426
&'tcx Steal<IndexVec<mir::Promoted, mir::Body<'tcx>>>
427427
) {
428428
no_hash
429-
desc { |tcx| "processing MIR for `{}`", tcx.def_path_str(key.to_def_id()) }
429+
desc { |tcx| "promoting constants in MIR for `{}`", tcx.def_path_str(key.to_def_id()) }
430430
}
431431

432432
query closure_typeinfo(key: LocalDefId) -> ty::ClosureTypeInfo<'tcx> {

tests/ui/chalkify/bugs/async.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | async fn foo(x: u32) -> u32 {
1818
#3 [mir_built] building MIR for `foo`
1919
#4 [unsafety_check_result] unsafety-checking `foo`
2020
#5 [mir_const] preparing `foo` for borrow checking
21-
#6 [mir_promoted] processing MIR for `foo`
21+
#6 [mir_promoted] promoting constants in MIR for `foo`
2222
#7 [mir_borrowck] borrow-checking `foo`
2323
#8 [type_of] computing type of `foo::{opaque#0}`
2424
#9 [check_mod_item_types] checking item types in top-level module

tests/ui/impl-trait/auto-trait-leak.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: ...which requires borrow-checking `cycle1`...
99
|
1010
LL | fn cycle1() -> impl Clone {
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12-
note: ...which requires processing MIR for `cycle1`...
12+
note: ...which requires promoting constants in MIR for `cycle1`...
1313
--> $DIR/auto-trait-leak.rs:12:1
1414
|
1515
LL | fn cycle1() -> impl Clone {
@@ -55,7 +55,7 @@ note: ...which requires borrow-checking `cycle2`...
5555
|
5656
LL | fn cycle2() -> impl Clone {
5757
| ^^^^^^^^^^^^^^^^^^^^^^^^^
58-
note: ...which requires processing MIR for `cycle2`...
58+
note: ...which requires promoting constants in MIR for `cycle2`...
5959
--> $DIR/auto-trait-leak.rs:19:1
6060
|
6161
LL | fn cycle2() -> impl Clone {

tests/ui/mir/validate/storage-live.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ error: the compiler unexpectedly panicked. this is a bug.
99

1010
query stack during panic:
1111
#0 [mir_const] preparing `multiple_storage` for borrow checking
12-
#1 [mir_promoted] processing MIR for `multiple_storage`
12+
#1 [mir_promoted] promoting constants in MIR for `multiple_storage`
1313
end of query stack

tests/ui/type-alias-enum-variants/self-in-enum-definition.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ note: ...which requires borrow-checking `Alpha::V3::{constant#0}`...
2929
|
3030
LL | V3 = Self::V1 {} as u8 + 2,
3131
| ^^^^^^^^^^^^^^^^^^^^^
32-
note: ...which requires processing MIR for `Alpha::V3::{constant#0}`...
32+
note: ...which requires promoting constants in MIR for `Alpha::V3::{constant#0}`...
3333
--> $DIR/self-in-enum-definition.rs:5:10
3434
|
3535
LL | V3 = Self::V1 {} as u8 + 2,

0 commit comments

Comments
 (0)