Skip to content

Commit 803b810

Browse files
committed
Remove feature(offset_of) from tests
1 parent 615946d commit 803b810

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

library/core/tests/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#![feature(noop_waker)]
6060
#![feature(numfmt)]
6161
#![feature(num_midpoint)]
62+
#![cfg_attr(not(bootstrap), feature(offset_of_nested))]
6263
#![feature(isqrt)]
6364
#![feature(step_trait)]
6465
#![feature(str_internals)]

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)