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 5, 2024
1 parent 09c619d commit b5179e0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
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 b5179e0

Please sign in to comment.