about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-02 18:57:22 -0400
committerGitHub <noreply@github.com>2022-08-02 18:57:22 -0400
commit86e2ca30880a06cb9dbcef1db4a20266e54cf862 (patch)
tree7ffde5e6b33a4be7759abe1a831607b294dafe83
parent35a35d86fdca99b22b07ed7d998ce05032e800d4 (diff)
downloadrust-86e2ca30880a06cb9dbcef1db4a20266e54cf862.tar.gz
rust-86e2ca30880a06cb9dbcef1db4a20266e54cf862.zip
add link to discussion
-rw-r--r--compiler/rustc_mir_build/src/check_unsafety.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/check_unsafety.rs b/compiler/rustc_mir_build/src/check_unsafety.rs
index e3157a43001..f0b0456c4b9 100644
--- a/compiler/rustc_mir_build/src/check_unsafety.rs
+++ b/compiler/rustc_mir_build/src/check_unsafety.rs
@@ -77,7 +77,8 @@ impl<'tcx> UnsafetyVisitor<'_, 'tcx> {
             SafetyContext::UnsafeBlock { ref mut used, .. } => {
                 // Mark this block as useful (even inside `unsafe fn`, where it is technically
                 // redundant -- but we want to eventually enable `unsafe_op_in_unsafe_fn` by
-                // default which will require those blocks).
+                // default which will require those blocks:
+                // https://github.com/rust-lang/rust/issues/71668#issuecomment-1203075594).
                 *used = true;
             }
             SafetyContext::UnsafeFn if unsafe_op_in_unsafe_fn_allowed => {}