about summary refs log tree commit diff
path: root/src/test/ui/command/command-pre-exec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-28 20:26:00 +0000
committerbors <bors@rust-lang.org>2021-05-28 20:26:00 +0000
commitf58631b4503b5cd34163cf9c3ff19dc3e0c8a09e (patch)
tree545eefd36b62375afffbebd88d03da0451b996e9 /src/test/ui/command/command-pre-exec.rs
parent0e44ca6dba86faf76daa7b06d9486f23812d4ccf (diff)
parentd1f0e9f65ce537f8026fdc207a596909c1fe4ed8 (diff)
downloadrust-f58631b4503b5cd34163cf9c3ff19dc3e0c8a09e.tar.gz
rust-f58631b4503b5cd34163cf9c3ff19dc3e0c8a09e.zip
Auto merge of #85607 - LeSeulArtichaut:thir-unsafeck-closures, r=nikomatsakis
Make closures inherit their parent's "safety context"

Fixes rust-lang/project-thir-unsafeck#9, ~~blocked on #85273~~.
r? `@nikomatsakis`
Diffstat (limited to 'src/test/ui/command/command-pre-exec.rs')
-rw-r--r--src/test/ui/command/command-pre-exec.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/command/command-pre-exec.rs b/src/test/ui/command/command-pre-exec.rs
index 819ed0b2dde..61914e22930 100644
--- a/src/test/ui/command/command-pre-exec.rs
+++ b/src/test/ui/command/command-pre-exec.rs
@@ -1,4 +1,6 @@
 // run-pass
+// revisions: mir thir
+// [thir]compile-flags: -Zthir-unsafeck
 
 #![allow(stable_features)]
 // ignore-windows - this is a unix-specific test