From bea2e55efac9cd4d40cc37a543dba3f1d1714bd2 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Mon, 3 Jun 2019 11:14:45 -0600 Subject: Utilize cfg(bootstrap) over cfg(stage0) Also removes stage1, stage2 cfgs being passed to rustc to ensure that stage1 and stage2 are only differentiated as a group (i.e., only through not bootstrap). --- src/libcore/ptr/non_null.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/ptr') diff --git a/src/libcore/ptr/non_null.rs b/src/libcore/ptr/non_null.rs index 0a6985e334c..46dde7c1da5 100644 --- a/src/libcore/ptr/non_null.rs +++ b/src/libcore/ptr/non_null.rs @@ -38,7 +38,7 @@ use crate::cmp::Ordering; #[stable(feature = "nonnull", since = "1.25.0")] #[repr(transparent)] #[rustc_layout_scalar_valid_range_start(1)] -#[cfg_attr(not(stage0), rustc_nonnull_optimization_guaranteed)] +#[cfg_attr(not(bootstrap), rustc_nonnull_optimization_guaranteed)] pub struct NonNull { pointer: *const T, } -- cgit 1.4.1-3-g733a5