Skip to content

Commit 6f167e9

Browse files
Remove ignore and add explanation of indirect mutation peek test
1 parent d045a17 commit 6f167e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/ui/mir-dataflow/indirect-mutation-offset.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// compile-flags: -Zunleash-the-miri-inside-of-you
22

3-
// ignore-test Temporarily ignored while this analysis is migrated to the new framework.
3+
// This test demonstrates a shortcoming of the `MaybeMutBorrowedLocals` analysis. It does not
4+
// handle code that takes a reference to one field of a struct, then use pointer arithmetic to
5+
// transform it to another field of that same struct that may have interior mutability. For now,
6+
// this is UB, but this may change in the future. See [rust-lang/unsafe-code-guidelines#134].
7+
//
8+
// [rust-lang/unsafe-code-guidelines#134]: https://github.com/rust-lang/unsafe-code-guidelines/issues/134
49

510
#![feature(core_intrinsics, rustc_attrs, const_raw_ptr_deref)]
611

0 commit comments

Comments
 (0)