1
Fork 0

Use check-pass instead of run-pass

We don't actually care about running these programs, only checking the
warnings they generate.
This commit is contained in:
Aaron Kofsky 2022-06-04 23:31:47 -04:00
parent 6342b58ef0
commit 11663b1d78
3 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
// run-pass // check-pass
// compile-flags: -W let_underscore_drop // compile-flags: -W let_underscore_drop
struct NontrivialDrop; struct NontrivialDrop;

View file

@ -1,3 +1,4 @@
// check-fail
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
fn main() { fn main() {

View file

@ -1,4 +1,4 @@
// run-pass // check-pass
// compile-flags: -W let_underscore_must_use // compile-flags: -W let_underscore_must_use
#[must_use] #[must_use]