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:
parent
6342b58ef0
commit
11663b1d78
3 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
// check-pass
|
||||||
// compile-flags: -W let_underscore_drop
|
// compile-flags: -W let_underscore_drop
|
||||||
|
|
||||||
struct NontrivialDrop;
|
struct NontrivialDrop;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// check-fail
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue