Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7d40530

Browse files
committed
Bless stderr files after rustfmt
1 parent b3a689e commit 7d40530

16 files changed

+67
-67
lines changed

tests/fail/concurrency/thread_local_static_dealloc.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: Undefined Behavior: pointer to ALLOC was dereferenced after this allocation got freed
22
--> $DIR/thread_local_static_dealloc.rs:LL:CC
33
|
4-
LL | let _val = *(dangling_ptr as *const u8);
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer to ALLOC was dereferenced after this allocation got freed
4+
LL | let _val = *(dangling_ptr as *const u8);
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer to ALLOC was dereferenced after this allocation got freed
66
|
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

tests/fail/stacked_borrows/interior_mut2.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
error: Undefined Behavior: trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
22
--> $DIR/interior_mut2.rs:LL:CC
33
|
4-
LL | let _val = *inner_shr.get();
5-
| ^^^^^^^^^^^^^^^
6-
| |
7-
| trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8-
| this error occurs as part of a reborrow at ALLOC[0x0..0x4]
4+
LL | let _val = *inner_shr.get();
5+
| ^^^^^^^^^^^^^^^
6+
| |
7+
| trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8+
| this error occurs as part of a reborrow at ALLOC[0x0..0x4]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
1212
help: <TAG> was created by a retag at offsets [0x0..0x4]
1313
--> $DIR/interior_mut2.rs:LL:CC
1414
|
15-
LL | let inner_shr = &*inner_uniq;
16-
| ^^^^^^^^^^^^
15+
LL | let inner_shr = &*inner_uniq;
16+
| ^^^^^^^^^^^^
1717
help: <TAG> was later invalidated at offsets [0x0..0x4]
1818
--> $DIR/interior_mut2.rs:LL:CC
1919
|
20-
LL | *c.get() = UnsafeCell::new(0); // now inner_shr gets invalidated
21-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20+
LL | *c.get() = UnsafeCell::new(0); // now inner_shr gets invalidated
21+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2222
= note: inside `main` at $DIR/interior_mut2.rs:LL:CC
2323

2424
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

tests/fail/stacked_borrows/issue-miri-1050-1.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
1212
note: inside `main` at $DIR/issue-miri-1050-1.rs:LL:CC
1313
--> $DIR/issue-miri-1050-1.rs:LL:CC
1414
|
15-
LL | Box::from_raw(ptr as *mut u32);
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | Box::from_raw(ptr as *mut u32);
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1717

1818
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1919

tests/fail/stacked_borrows/issue-miri-1050-2.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
1212
note: inside `main` at $DIR/issue-miri-1050-2.rs:LL:CC
1313
--> $DIR/issue-miri-1050-2.rs:LL:CC
1414
|
15-
LL | Box::from_raw(ptr.as_ptr());
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | Box::from_raw(ptr.as_ptr());
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1717

1818
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1919

tests/fail/stacked_borrows/mut_exclusive_violation1.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
error: Undefined Behavior: attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
22
--> $DIR/mut_exclusive_violation1.rs:LL:CC
33
|
4-
LL | *LEAK = 7;
5-
| ^^^^^^^^^
6-
| |
7-
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4+
LL | *LEAK = 7;
5+
| ^^^^^^^^^
6+
| |
7+
| attempting a write access using <untagged> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8+
| this error occurs as part of an access at ALLOC[0x0..0x4]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
1212
help: tag was most recently created at offsets [0x0..0x4]
1313
--> $DIR/mut_exclusive_violation1.rs:LL:CC
1414
|
15-
LL | LEAK = x as *const _ as *mut _;
16-
| ^
15+
LL | LEAK = x as *const _ as *mut _;
16+
| ^
1717
help: tag was later invalidated at offsets [0x0..0x4]
1818
--> $DIR/mut_exclusive_violation1.rs:LL:CC
1919
|
20-
LL | *our = 5;
21-
| ^^^^^^^^
20+
LL | *our = 5;
21+
| ^^^^^^^^
2222
= note: inside `unknown_code_2` at $DIR/mut_exclusive_violation1.rs:LL:CC
2323
note: inside `demo_mut_advanced_unique` at $DIR/mut_exclusive_violation1.rs:LL:CC
2424
--> $DIR/mut_exclusive_violation1.rs:LL:CC
2525
|
26-
LL | unknown_code_2();
27-
| ^^^^^^^^^^^^^^^^
26+
LL | unknown_code_2();
27+
| ^^^^^^^^^^^^^^^^
2828
note: inside `main` at $DIR/mut_exclusive_violation1.rs:LL:CC
2929
--> $DIR/mut_exclusive_violation1.rs:LL:CC
3030
|

tests/fail/stacked_borrows/mut_exclusive_violation2.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
error: Undefined Behavior: attempting a read access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
22
--> $DIR/mut_exclusive_violation2.rs:LL:CC
33
|
4-
LL | let _val = *raw1;
5-
| ^^^^^
6-
| |
7-
| attempting a read access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8-
| this error occurs as part of an access at ALLOC[0x0..0x4]
4+
LL | let _val = *raw1;
5+
| ^^^^^
6+
| |
7+
| attempting a read access using <TAG> at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8+
| this error occurs as part of an access at ALLOC[0x0..0x4]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
1212
help: <TAG> was created by a retag at offsets [0x0..0x4]
1313
--> $DIR/mut_exclusive_violation2.rs:LL:CC
1414
|
15-
LL | let raw1 = ptr1.as_mut();
16-
| ^^^^^^^^^^^^^
15+
LL | let raw1 = ptr1.as_mut();
16+
| ^^^^^^^^^^^^^
1717
help: <TAG> was later invalidated at offsets [0x0..0x4]
1818
--> $DIR/mut_exclusive_violation2.rs:LL:CC
1919
|
20-
LL | let _raw2 = ptr2.as_mut();
21-
| ^^^^^^^^^^^^^
20+
LL | let _raw2 = ptr2.as_mut();
21+
| ^^^^^^^^^^^^^
2222
= note: inside `main` at $DIR/mut_exclusive_violation2.rs:LL:CC
2323

2424
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

tests/fail/stacked_borrows/return_invalid_mut_option.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: Undefined Behavior: trying to reborrow <TAG> for Unique permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location
22
--> $DIR/return_invalid_mut_option.rs:LL:CC
33
|
4-
LL | Some(_x) => {},
4+
LL | Some(_x) => {}
55
| ^^
66
| |
77
| trying to reborrow <TAG> for Unique permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location

tests/fail/stacked_borrows/return_invalid_shr_option.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: Undefined Behavior: trying to reborrow <TAG> for SharedReadOnly permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location
22
--> $DIR/return_invalid_shr_option.rs:LL:CC
33
|
4-
LL | Some(_x) => {},
4+
LL | Some(_x) => {}
55
| ^^
66
| |
77
| trying to reborrow <TAG> for SharedReadOnly permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location

tests/fail/stacked_borrows/shared_rw_borrows_are_weak1.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
error: Undefined Behavior: trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
22
--> $DIR/shared_rw_borrows_are_weak1.rs:LL:CC
33
|
4-
LL | y.get_mut();
5-
| ^^^^^^^^^^^
6-
| |
7-
| trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8-
| this error occurs as part of a reborrow at ALLOC[0x0..0x4]
4+
LL | y.get_mut();
5+
| ^^^^^^^^^^^
6+
| |
7+
| trying to reborrow <TAG> for SharedReadWrite permission at ALLOC[0x0], but that tag does not exist in the borrow stack for this location
8+
| this error occurs as part of a reborrow at ALLOC[0x0..0x4]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
1212
help: <TAG> was created by a retag at offsets [0x0..0x4]
1313
--> $DIR/shared_rw_borrows_are_weak1.rs:LL:CC
1414
|
15-
LL | let y: &mut Cell<i32> = mem::transmute(&mut *x); // launder lifetime
16-
| ^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | let y: &mut Cell<i32> = mem::transmute(&mut *x); // launder lifetime
16+
| ^^^^^^^^^^^^^^^^^^^^^^^
1717
help: <TAG> was later invalidated at offsets [0x0..0x4]
1818
--> $DIR/shared_rw_borrows_are_weak1.rs:LL:CC
1919
|
20-
LL | shr_rw.set(1);
21-
| ^^^^^^^^^^^^^
20+
LL | shr_rw.set(1);
21+
| ^^^^^^^^^^^^^
2222
= note: inside `main` at $DIR/shared_rw_borrows_are_weak1.rs:LL:CC
2323

2424
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

tests/fail/stacked_borrows/shared_rw_borrows_are_weak2.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
error: Undefined Behavior: attempting a read access using <TAG> at ALLOC[$HEX], but that tag does not exist in the borrow stack for this location
22
--> $DIR/shared_rw_borrows_are_weak2.rs:LL:CC
33
|
4-
LL | let _val = *y;
5-
| ^^
6-
| |
7-
| attempting a read access using <TAG> at ALLOC[$HEX], but that tag does not exist in the borrow stack for this location
8-
| this error occurs as part of an access at ALLOC[$HEX..$HEX]
4+
LL | let _val = *y;
5+
| ^^
6+
| |
7+
| attempting a read access using <TAG> at ALLOC[$HEX], but that tag does not exist in the borrow stack for this location
8+
| this error occurs as part of an access at ALLOC[$HEX..$HEX]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
1212
help: <TAG> was created by a retag at offsets [$HEX..$HEX]
1313
--> $DIR/shared_rw_borrows_are_weak2.rs:LL:CC
1414
|
15-
LL | let y: &i32 = mem::transmute(&*x.borrow()); // launder lifetime
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
LL | let y: &i32 = mem::transmute(&*x.borrow()); // launder lifetime
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1717
help: <TAG> was later invalidated at offsets [$HEX..$HEX]
1818
--> $DIR/shared_rw_borrows_are_weak2.rs:LL:CC
1919
|
20-
LL | shr_rw.replace(1);
21-
| ^^^^^^^^^^^^^^^^^
20+
LL | shr_rw.replace(1);
21+
| ^^^^^^^^^^^^^^^^^
2222
= note: inside `main` at $DIR/shared_rw_borrows_are_weak2.rs:LL:CC
2323

2424
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

0 commit comments

Comments
 (0)