Skip to content

Commit b0b76a5

Browse files
committed
fix deny_lint test
1 parent 2c88ee8 commit b0b76a5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/tools/miri/tests/fail/deny_lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@error-in-other-file: miri cannot be run on programs that fail compilation
22

3-
#![deny(warnings)]
3+
#![deny(warnings, unused)]
44

55
struct Foo;
66
//~^ ERROR: struct `Foo` is never constructed

src/tools/miri/tests/fail/deny_lint.stderr

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ error: struct `Foo` is never constructed
44
LL | struct Foo;
55
| ^^^
66
|
7-
= note: `-D dead-code` implied by `-D unused`
7+
note: the lint level is defined here
8+
--> $DIR/deny_lint.rs:LL:CC
9+
|
10+
LL | #![deny(warnings, unused)]
11+
| ^^^^^^
12+
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
813

914
error: miri cannot be run on programs that fail compilation
1015

0 commit comments

Comments
 (0)