Skip to content

Commit b5179e0

Browse files
committed
Remove feature(offset_of) from tests
1 parent 09c619d commit b5179e0

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

tests/mir-opt/const_prop/offset_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// unit-test: GVN
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44

5-
#![feature(offset_of, offset_of_enum)]
5+
#![feature(offset_of_enum, offset_of_nested)]
66

77
use std::marker::PhantomData;
88
use std::mem::offset_of;

tests/mir-opt/dataflow-const-prop/offset_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// unit-test: DataflowConstProp
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44

5-
#![feature(offset_of)]
5+
#![feature(offset_of_nested)]
66

77
use std::marker::PhantomData;
88
use std::mem::offset_of;

tests/pretty/offset_of.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// pp-exact
2-
#![feature(offset_of)]
32

43
fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); }

tests/ui/layout/issue-112048-unsizing-niche.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// Check that unsizing does not change which field is considered for niche layout.
44

5-
#![feature(offset_of)]
65
#![allow(dead_code)]
76

87
#[derive(Clone)]

0 commit comments

Comments
 (0)