Skip to content

Commit 6514772

Browse files
committed
ask people to reach out if we declare too much UB
1 parent c5c0f85 commit 6514772

File tree

72 files changed

+73
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+73
-2
lines changed

src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ pub fn report_error<'tcx, 'mir>(
224224
(None, format!("or pass `-Zmiri-isolation-error=warn` to configure Miri to return an error code from isolated operations (if supported for that operation) and continue with a warning")),
225225
],
226226
StackedBorrowsUb { help, history, .. } => {
227-
let url = "https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md";
228227
msg.extend(help.clone());
229228
let mut helps = vec![
230229
(None, format!("this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental")),
231-
(None, format!("see {url} for further information")),
230+
(None, format!("see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information")),
231+
(None, format!("please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling")),
232232
];
233233
if let Some(TagHistory {created, invalidated, protected}) = history.clone() {
234234
helps.push((Some(created.1), created.0));

tests/fail/both_borrows/alias_through_mutation.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | let _val = *target_alias;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/alias_through_mutation.rs:LL:CC
1415
|

tests/fail/both_borrows/aliasing_mut1.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | pub fn safe(x: &mut i32, y: &mut i32) {
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a Unique retag at offsets [0x0..0x4]
1011
--> $DIR/aliasing_mut1.rs:LL:CC
1112
|

tests/fail/both_borrows/aliasing_mut2.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | pub fn safe(x: &i32, y: &mut i32) {
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a Unique retag at offsets [0x0..0x4]
1011
--> $DIR/aliasing_mut2.rs:LL:CC
1112
|

tests/fail/both_borrows/aliasing_mut3.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | pub fn safe(x: &mut i32, y: &i32) {
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/aliasing_mut3.rs:LL:CC
1415
|

tests/fail/both_borrows/aliasing_mut4.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | pub fn safe(x: &i32, y: &mut Cell<i32>) {
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a Unique retag at offsets [0x0..0x4]
1011
--> $DIR/aliasing_mut4.rs:LL:CC
1112
|

tests/fail/both_borrows/box_exclusive_violation1.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | *LEAK = 7;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/box_exclusive_violation1.rs:LL:CC
1415
|

tests/fail/both_borrows/box_noalias_violation.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | *y
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/box_noalias_violation.rs:LL:CC
1112
|

tests/fail/both_borrows/buggy_as_mut_slice.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | v1[1] = 5;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a Unique retag at offsets [0x0..0xc]
1314
--> $DIR/buggy_as_mut_slice.rs:LL:CC
1415
|

tests/fail/both_borrows/buggy_split_at_mut.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LL | | )
1212
|
1313
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1414
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
15+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1516
help: <TAG> was created by a Unique retag at offsets [0x0..0x10]
1617
--> $DIR/buggy_split_at_mut.rs:LL:CC
1718
|

tests/fail/both_borrows/illegal_write1.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | unsafe { *x = 42 };
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/illegal_write1.rs:LL:CC
1415
|

tests/fail/both_borrows/illegal_write5.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | let _val = *xref;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a Unique retag at offsets [0x0..0x4]
1314
--> $DIR/illegal_write5.rs:LL:CC
1415
|

tests/fail/both_borrows/illegal_write6.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { *y = 2 };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/illegal_write6.rs:LL:CC
1112
|

tests/fail/both_borrows/invalidate_against_protector2.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { *x = 0 };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/invalidate_against_protector2.rs:LL:CC
1112
|

tests/fail/both_borrows/invalidate_against_protector3.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { *x = 0 };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created here, as the base tag for ALLOC
1011
--> $DIR/invalidate_against_protector3.rs:LL:CC
1112
|

tests/fail/both_borrows/load_invalid_shr.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | let _val = *xref_in_mem;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/load_invalid_shr.rs:LL:CC
1415
|

tests/fail/both_borrows/mut_exclusive_violation1.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | *LEAK = 7;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/mut_exclusive_violation1.rs:LL:CC
1415
|

tests/fail/both_borrows/mut_exclusive_violation2.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | let _val = *raw1;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a Unique retag at offsets [0x0..0x4]
1314
--> $DIR/mut_exclusive_violation2.rs:LL:CC
1415
|

tests/fail/both_borrows/newtype_pair_retagging.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/newtype_pair_retagging.rs:LL:CC
1112
|

tests/fail/both_borrows/newtype_retagging.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/newtype_retagging.rs:LL:CC
1112
|

tests/fail/both_borrows/outdated_local.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | assert_eq!(unsafe { *y }, 1);
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/outdated_local.rs:LL:CC
1415
|

tests/fail/both_borrows/pass_invalid_shr.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | foo(xref);
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/pass_invalid_shr.rs:LL:CC
1415
|

tests/fail/both_borrows/pass_invalid_shr_option.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | foo(some_xref);
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/pass_invalid_shr_option.rs:LL:CC
1415
|

tests/fail/both_borrows/pass_invalid_shr_tuple.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | foo(pair_xref);
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/pass_invalid_shr_tuple.rs:LL:CC
1415
|

tests/fail/both_borrows/return_invalid_shr.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | ret
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x4..0x8]
1314
--> $DIR/return_invalid_shr.rs:LL:CC
1415
|

tests/fail/both_borrows/return_invalid_shr_option.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | ret
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x4..0x8]
1314
--> $DIR/return_invalid_shr_option.rs:LL:CC
1415
|

tests/fail/both_borrows/return_invalid_shr_tuple.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | ret
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x4..0x8]
1314
--> $DIR/return_invalid_shr_tuple.rs:LL:CC
1415
|

tests/fail/both_borrows/shr_frozen_violation1.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | *(x as *const i32 as *mut i32) = 7;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/shr_frozen_violation1.rs:LL:CC
1415
|

tests/fail/both_borrows/shr_frozen_violation2.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | let _val = *frozen;
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
1314
--> $DIR/shr_frozen_violation2.rs:LL:CC
1415
|

tests/fail/box-cell-alias.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LL | unsafe { (*ptr).set(20) };
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
12+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
1213
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x1]
1314
--> $DIR/box-cell-alias.rs:LL:CC
1415
|

tests/fail/function_calls/arg_inplace_mutate.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { ptr.write(S(0)) };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/arg_inplace_mutate.rs:LL:CC
1112
|

tests/fail/function_calls/arg_inplace_observe_during.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { ptr.read() };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/arg_inplace_observe_during.rs:LL:CC
1112
|

tests/fail/function_calls/return_pointer_aliasing.stack.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | unsafe { ptr.read() };
66
|
77
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
88
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
9+
= help: please reach out to us (e.g. at <https://rust-lang.zulipchat.com/#narrow/stream/269128-miri>) if you find this troubling
910
help: <TAG> was created by a SharedReadWrite retag at offsets [0x0..0x4]
1011
--> $DIR/return_pointer_aliasing.rs:LL:CC
1112
|

0 commit comments

Comments
 (0)