Skip to content

Commit 5fbb5d2

Browse files
committed
Bless miri tests
1 parent 4fc6247 commit 5fbb5d2

6 files changed

+8
-0
lines changed

src/tools/miri/tests/fail/enum-untagged-variant-invalid-encoding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::mem;
77
// That means the untagged variants is in the niche variant range!
88
// However, using the corresponding value (2+1 = 3) is not a valid encoding of this variant.
99
#[derive(Copy, Clone, PartialEq)]
10+
#[allow(dead_code)]
1011
enum Foo {
1112
Var1,
1213
Var2(bool),

src/tools/miri/tests/pass/binops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn test_ptr() {
5050
}
5151

5252
#[derive(PartialEq, Debug)]
53+
#[allow(dead_code)]
5354
struct P {
5455
x: isize,
5556
y: isize,

src/tools/miri/tests/pass/coercions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(coerce_unsized, unsize)]
2+
#![allow(dead_code)]
23

34
use std::marker::Unsize;
45
use std::ops::CoerceUnsized;

src/tools/miri/tests/pass/deriving-associated-types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(dead_code)]
2+
13
pub trait DeclaredTrait {
24
type Type;
35
}

src/tools/miri/tests/pass/tuple_like_enum_variant_constructor_struct_pointer_opt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(dead_code)]
2+
13
#[derive(Copy, Clone, PartialEq, Debug)]
24
struct A<'a> {
35
x: i32,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
fn main() {
22
#[derive(PartialEq, Eq, Debug)]
3+
#[allow(dead_code)]
34
struct A(i32);
45
assert_eq!(Some(42).map(A), Some(A(42)));
56
}

0 commit comments

Comments
 (0)