about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-09-10 13:40:34 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-09-11 11:25:51 +0200
commit833dc7e6826483b19c819fc19727efe4e8ddbf12 (patch)
treee3129c36ae23408fcdb7a5db0edf2c6d7d07136d /src/libcore
parenta2c924b5ae21b67be77aa7e944ae9d9f883a0bde (diff)
downloadrust-833dc7e6826483b19c819fc19727efe4e8ddbf12.tar.gz
rust-833dc7e6826483b19c819fc19727efe4e8ddbf12.zip
Address attribute naming and use `Bound` enum
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/nonzero.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/nonzero.rs b/src/libcore/nonzero.rs
index 6f27d3207bb..30067d7e163 100644
--- a/src/libcore/nonzero.rs
+++ b/src/libcore/nonzero.rs
@@ -15,7 +15,7 @@ use ops::CoerceUnsized;
 /// A wrapper type for raw pointers and integers that will never be
 /// NULL or 0 that might allow certain optimizations.
 #[cfg_attr(stage0, lang = "non_zero")]
-#[cfg_attr(not(stage0), rustc_layout_scalar_range_start(1))]
+#[cfg_attr(not(stage0), rustc_layout_scalar_valid_range_start(1))]
 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
 #[repr(transparent)]
 pub(crate) struct NonZero<T>(pub(crate) T);