Skip to content

Commit 0db1f54

Browse files
thomcclqd
authored andcommitted
Bless tests
1 parent 9d31462 commit 0db1f54

25 files changed

+75
-78
lines changed

tests/mir-opt/inline/inline_closure.foo.Inline.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn foo(_1: T, _2: i32) -> i32 {
2323
StorageLive(_3); // scope 0 at $DIR/inline_closure.rs:+1:9: +1:10
2424
_3 = [closure@foo::<T>::{closure#0}]; // scope 0 at $DIR/inline_closure.rs:+1:13: +1:24
2525
// closure
26-
// + def_id: DefId(0:6 ~ inline_closure[92ba]::foo::{closure#0})
26+
// + def_id: DefId(0:6 ~ inline_closure[8f32]::foo::{closure#0})
2727
// + substs: [
2828
// T,
2929
// i8,

tests/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn foo(_1: T, _2: &i32) -> i32 {
2626
StorageLive(_3); // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:9: +1:10
2727
_3 = [closure@foo::<T>::{closure#0}]; // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:13: +4:6
2828
// closure
29-
// + def_id: DefId(0:6 ~ inline_closure_borrows_arg[96e9]::foo::{closure#0})
29+
// + def_id: DefId(0:6 ~ inline_closure_borrows_arg[f89f]::foo::{closure#0})
3030
// + substs: [
3131
// T,
3232
// i8,

tests/mir-opt/inline/inline_closure_captures.foo.Inline.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn foo(_1: T, _2: i32) -> (i32, T) {
3232
_5 = &_1; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
3333
_3 = [closure@foo::<T>::{closure#0}] { q: move _4, t: move _5 }; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
3434
// closure
35-
// + def_id: DefId(0:6 ~ inline_closure_captures[8bc0]::foo::{closure#0})
35+
// + def_id: DefId(0:6 ~ inline_closure_captures[63a5]::foo::{closure#0})
3636
// + substs: [
3737
// T,
3838
// i8,

tests/mir-opt/inline/inline_cycle_generic.main.Inline.diff

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@
66
let _1: (); // in scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
77
+ scope 1 (inlined <C as Call>::call) { // at $DIR/inline_cycle_generic.rs:9:5: 9:24
88
+ scope 2 (inlined <B<A> as Call>::call) { // at $DIR/inline_cycle_generic.rs:38:9: 38:31
9-
+ scope 3 (inlined <A as Call>::call) { // at $DIR/inline_cycle_generic.rs:31:9: 31:28
10-
+ scope 4 (inlined <B<C> as Call>::call) { // at $DIR/inline_cycle_generic.rs:23:9: 23:31
11-
+ }
12-
+ }
139
+ }
1410
+ }
1511

1612
bb0: {
1713
StorageLive(_1); // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
1814
- _1 = <C as Call>::call() -> bb1; // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
19-
+ _1 = <C as Call>::call() -> bb1; // scope 4 at $DIR/inline_cycle_generic.rs:31:9: 31:28
15+
+ _1 = <A as Call>::call() -> bb1; // scope 2 at $DIR/inline_cycle_generic.rs:31:9: 31:28
2016
// mir::Constant
2117
- // + span: $DIR/inline_cycle_generic.rs:9:5: 9:22
18+
- // + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
2219
+ // + span: $DIR/inline_cycle_generic.rs:31:9: 31:26
23-
// + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
20+
+ // + literal: Const { ty: fn() {<A as Call>::call}, val: Value(<ZST>) }
2421
}
2522

2623
bb1: {

tests/mir-opt/inline/inline_generator.main.Inline.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
- bb1: {
4545
+ _4 = [generator@$DIR/inline_generator.rs:15:5: 15:8 (#0)]; // scope 2 at $DIR/inline_generator.rs:15:5: 15:41
4646
+ // generator
47-
+ // + def_id: DefId(0:7 ~ inline_generator[ea31]::g::{closure#0})
47+
+ // + def_id: DefId(0:7 ~ inline_generator[e37e]::g::{closure#0})
4848
+ // + substs: [
4949
+ // bool,
5050
+ // i32,

tests/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() -> () {
2121
StorageLive(_1); // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:9: +1:10
2222
_1 = [closure@$DIR/issue_76997_inline_scopes_parenting.rs:5:13: 5:16]; // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:13: +1:33
2323
// closure
24-
// + def_id: DefId(0:4 ~ issue_76997_inline_scopes_parenting[bc59]::main::{closure#0})
24+
// + def_id: DefId(0:4 ~ issue_76997_inline_scopes_parenting[5cd2]::main::{closure#0})
2525
// + substs: [
2626
// i8,
2727
// extern "rust-call" fn(((),)),

tests/mir-opt/issue_99325.main.built.after.mir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// MIR for `main` after built
22

33
| User Type Annotations
4-
| 0: user_ty: Canonical { value: TypeOf(DefId(0:3 ~ issue_99325[8f58]::function_with_bytes), UserSubsts { substs: [Const { ty: &'static [u8; 4], kind: Value(Branch([Leaf(0x41), Leaf(0x41), Leaf(0x41), Leaf(0x41)])) }], user_self_ty: None }), max_universe: U0, variables: [] }, span: $DIR/issue_99325.rs:10:16: 10:46, inferred_ty: fn() -> &'static [u8] {function_with_bytes::<&*b"AAAA">}
5-
| 1: user_ty: Canonical { value: TypeOf(DefId(0:3 ~ issue_99325[8f58]::function_with_bytes), UserSubsts { substs: [Const { ty: &'static [u8; 4], kind: Unevaluated(UnevaluatedConst { def: WithOptConstParam { did: DefId(0:8 ~ issue_99325[8f58]::main::{constant#1}), const_param_did: Some(DefId(0:4 ~ issue_99325[8f58]::function_with_bytes::BYTES)) }, substs: [] }) }], user_self_ty: None }), max_universe: U0, variables: [] }, span: $DIR/issue_99325.rs:11:16: 11:68, inferred_ty: fn() -> &'static [u8] {function_with_bytes::<&*b"AAAA">}
4+
| 0: user_ty: Canonical { value: TypeOf(DefId(0:3 ~ issue_99325[22bb]::function_with_bytes), UserSubsts { substs: [Const { ty: &'static [u8; 4], kind: Value(Branch([Leaf(0x41), Leaf(0x41), Leaf(0x41), Leaf(0x41)])) }], user_self_ty: None }), max_universe: U0, variables: [] }, span: $DIR/issue_99325.rs:10:16: 10:46, inferred_ty: fn() -> &'static [u8] {function_with_bytes::<&*b"AAAA">}
5+
| 1: user_ty: Canonical { value: TypeOf(DefId(0:3 ~ issue_99325[22bb]::function_with_bytes), UserSubsts { substs: [Const { ty: &'static [u8; 4], kind: Unevaluated(UnevaluatedConst { def: WithOptConstParam { did: DefId(0:8 ~ issue_99325[22bb]::main::{constant#1}), const_param_did: Some(DefId(0:4 ~ issue_99325[22bb]::function_with_bytes::BYTES)) }, substs: [] }) }], user_self_ty: None }), max_universe: U0, variables: [] }, span: $DIR/issue_99325.rs:11:16: 11:68, inferred_ty: fn() -> &'static [u8] {function_with_bytes::<&*b"AAAA">}
66
|
77
fn main() -> () {
88
let mut _0: (); // return place in scope 0 at $DIR/issue_99325.rs:+0:15: +0:15

tests/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn main() -> () {
108108
StorageLive(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
109109
_14 = [closure@main::{closure#0}]; // scope 1 at $DIR/retag.rs:+11:31: +14:6
110110
// closure
111-
// + def_id: DefId(0:14 ~ retag[4622]::main::{closure#0})
111+
// + def_id: DefId(0:14 ~ retag[7654]::main::{closure#0})
112112
// + substs: [
113113
// i8,
114114
// for<'a> extern "rust-call" fn((&'a i32,)) -> &'a i32,

tests/ui/consts/miri_unleashed/tls.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ error[E0080]: could not evaluate static initializer
22
--> $DIR/tls.rs:11:25
33
|
44
LL | unsafe { let _val = A; }
5-
| ^ cannot access thread local static (DefId(0:4 ~ tls[78b0]::A))
5+
| ^ cannot access thread local static (DefId(0:4 ~ tls[ca29]::A))
66

77
error[E0080]: could not evaluate static initializer
88
--> $DIR/tls.rs:18:26
99
|
1010
LL | unsafe { let _val = &A; }
11-
| ^ cannot access thread local static (DefId(0:4 ~ tls[78b0]::A))
11+
| ^ cannot access thread local static (DefId(0:4 ~ tls[ca29]::A))
1212

1313
warning: skipping const checks
1414
|

tests/ui/generator/print/generator-print-verbose-1.drop_tracking.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note: generator is not `Send` as this value is used across a yield
1010
--> $DIR/generator-print-verbose-1.rs:38:9
1111
|
1212
LL | let _non_send_gen = make_non_send_generator();
13-
| ------------- has type `Opaque(DefId(0:34 ~ generator_print_verbose_1[749a]::make_non_send_generator::{opaque#0}), [])` which is not `Send`
13+
| ------------- has type `Opaque(DefId(0:34 ~ generator_print_verbose_1[7d1d]::make_non_send_generator::{opaque#0}), [])` which is not `Send`
1414
LL | yield;
1515
| ^^^^^ yield occurs here, with `_non_send_gen` maybe used later
1616
LL | };
@@ -37,17 +37,17 @@ note: required because it's used within this generator
3737
|
3838
LL | || {
3939
| ^^
40-
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Arc<RefCell<i32>>])`
40+
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[7d1d]::make_gen2::{opaque#0}), [Arc<RefCell<i32>>])`
4141
--> $DIR/generator-print-verbose-1.rs:44:30
4242
|
4343
LL | pub fn make_gen2<T>(t: T) -> impl Generator<Return = T> {
4444
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
45-
note: required because it appears within the type `Opaque(DefId(0:36 ~ generator_print_verbose_1[749a]::make_non_send_generator2::{opaque#0}), [])`
45+
note: required because it appears within the type `Opaque(DefId(0:36 ~ generator_print_verbose_1[7d1d]::make_non_send_generator2::{opaque#0}), [])`
4646
--> $DIR/generator-print-verbose-1.rs:50:34
4747
|
4848
LL | fn make_non_send_generator2() -> impl Generator<Return = Arc<RefCell<i32>>> {
4949
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50-
= note: required because it captures the following types: `Opaque(DefId(0:36 ~ generator_print_verbose_1[749a]::make_non_send_generator2::{opaque#0}), [])`, `()`
50+
= note: required because it captures the following types: `Opaque(DefId(0:36 ~ generator_print_verbose_1[7d1d]::make_non_send_generator2::{opaque#0}), [])`, `()`
5151
note: required because it's used within this generator
5252
--> $DIR/generator-print-verbose-1.rs:55:20
5353
|

0 commit comments

Comments
 (0)