Skip to content

Commit

Permalink
Remove feature(offset_of) from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GKFX committed Jan 19, 2024
1 parent 615946d commit 803b810
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#![feature(noop_waker)]
#![feature(numfmt)]
#![feature(num_midpoint)]
#![cfg_attr(not(bootstrap), feature(offset_of_nested))]
#![feature(isqrt)]
#![feature(step_trait)]
#![feature(str_internals)]
Expand Down
2 changes: 1 addition & 1 deletion tests/mir-opt/const_prop/offset_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// unit-test: GVN
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY

#![feature(offset_of, offset_of_enum)]
#![feature(offset_of_enum, offset_of_nested)]

use std::marker::PhantomData;
use std::mem::offset_of;
Expand Down
2 changes: 1 addition & 1 deletion tests/mir-opt/dataflow-const-prop/offset_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// unit-test: DataflowConstProp
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY

#![feature(offset_of)]
#![feature(offset_of_nested)]

use std::marker::PhantomData;
use std::mem::offset_of;
Expand Down
1 change: 0 additions & 1 deletion tests/pretty/offset_of.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// pp-exact
#![feature(offset_of)]

fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); }
1 change: 0 additions & 1 deletion tests/ui/layout/issue-112048-unsizing-niche.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

#![feature(offset_of)]
#![allow(dead_code)]

#[derive(Clone)]
Expand Down

0 comments on commit 803b810

Please sign in to comment.