]> git.lizzy.rs Git - rust.git/commitdiff
Use `check-pass` instead of `run-pass`
authorAaron Kofsky <aaronko@umich.edu>
Sun, 5 Jun 2022 03:31:47 +0000 (23:31 -0400)
committerAaron Kofsky <aaronko@umich.edu>
Sun, 5 Jun 2022 03:31:47 +0000 (23:31 -0400)
We don't actually care about running these programs, only checking the
warnings they generate.

src/test/ui/lint/let_underscore/let_underscore_drop.rs
src/test/ui/lint/let_underscore/let_underscore_lock.rs
src/test/ui/lint/let_underscore/let_underscore_must_use.rs

index 75c6ecec3ee537b1f907324441699a35c5bd6435..85ca5dd2880a4571335768d083367c5a82e3fdd2 100644 (file)
@@ -1,4 +1,4 @@
-// run-pass
+// check-pass
 // compile-flags: -W let_underscore_drop
 
 struct NontrivialDrop;
index c37264136ef7fca043543a415555b202780e1190..7423862cdf05dcb17b5cb277752b8f0a2f999377 100644 (file)
@@ -1,3 +1,4 @@
+// check-fail
 use std::sync::{Arc, Mutex};
 
 fn main() {
index 8efaad51ea87788ecf80e891441fb06c15a5d39f..3f79dc7a096b63cef1a718a3bf86d488ae4df40b 100644 (file)
@@ -1,4 +1,4 @@
-// run-pass
+// check-pass
 // compile-flags: -W let_underscore_must_use
 
 #[must_use]