about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-02-12 13:42:56 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-02-12 14:45:18 -0800
commit6f167e9c5f421613ff3de37771b1352cd98dd4f7 (patch)
tree0975cd1f61cc87859af850b4f24e1632ba499625
parentd045a17c4b032a858323f6c9bea698ee2e5920b7 (diff)
downloadrust-6f167e9c5f421613ff3de37771b1352cd98dd4f7.tar.gz
rust-6f167e9c5f421613ff3de37771b1352cd98dd4f7.zip
Remove ignore and add explanation of indirect mutation peek test
-rw-r--r--src/test/ui/mir-dataflow/indirect-mutation-offset.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ui/mir-dataflow/indirect-mutation-offset.rs b/src/test/ui/mir-dataflow/indirect-mutation-offset.rs
index 884c83b6616..caa307e269f 100644
--- a/src/test/ui/mir-dataflow/indirect-mutation-offset.rs
+++ b/src/test/ui/mir-dataflow/indirect-mutation-offset.rs
@@ -1,6 +1,11 @@
 // compile-flags: -Zunleash-the-miri-inside-of-you
 
-// ignore-test Temporarily ignored while this analysis is migrated to the new framework.
+// This test demonstrates a shortcoming of the `MaybeMutBorrowedLocals` analysis. It does not
+// handle code that takes a reference to one field of a struct, then use pointer arithmetic to
+// transform it to another field of that same struct that may have interior mutability. For now,
+// this is UB, but this may change in the future. See [rust-lang/unsafe-code-guidelines#134].
+//
+// [rust-lang/unsafe-code-guidelines#134]: https://github.com/rust-lang/unsafe-code-guidelines/issues/134
 
 #![feature(core_intrinsics, rustc_attrs, const_raw_ptr_deref)]