Remove feature(offset_of) from tests

This commit is contained in:
George Bateman 2024-01-05 21:25:01 +00:00
parent 615946db4f
commit 803b810eac
No known key found for this signature in database
GPG Key ID: C417AA9C4039EFCF
5 changed files with 3 additions and 4 deletions

View File

@ -59,6 +59,7 @@
#![feature(noop_waker)] #![feature(noop_waker)]
#![feature(numfmt)] #![feature(numfmt)]
#![feature(num_midpoint)] #![feature(num_midpoint)]
#![cfg_attr(not(bootstrap), feature(offset_of_nested))]
#![feature(isqrt)] #![feature(isqrt)]
#![feature(step_trait)] #![feature(step_trait)]
#![feature(str_internals)] #![feature(str_internals)]

View File

@ -2,7 +2,7 @@
// unit-test: GVN // unit-test: GVN
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // 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::marker::PhantomData;
use std::mem::offset_of; use std::mem::offset_of;

View File

@ -2,7 +2,7 @@
// unit-test: DataflowConstProp // unit-test: DataflowConstProp
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(offset_of)] #![feature(offset_of_nested)]
use std::marker::PhantomData; use std::marker::PhantomData;
use std::mem::offset_of; use std::mem::offset_of;

View File

@ -1,4 +1,3 @@
// pp-exact // pp-exact
#![feature(offset_of)]
fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); } fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); }

View File

@ -2,7 +2,6 @@
// Check that unsizing does not change which field is considered for niche layout. // Check that unsizing does not change which field is considered for niche layout.
#![feature(offset_of)]
#![allow(dead_code)] #![allow(dead_code)]
#[derive(Clone)] #[derive(Clone)]