diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-09-10 13:40:34 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-09-11 11:25:51 +0200 |
| commit | 833dc7e6826483b19c819fc19727efe4e8ddbf12 (patch) | |
| tree | e3129c36ae23408fcdb7a5db0edf2c6d7d07136d /src/libcore | |
| parent | a2c924b5ae21b67be77aa7e944ae9d9f883a0bde (diff) | |
| download | rust-833dc7e6826483b19c819fc19727efe4e8ddbf12.tar.gz rust-833dc7e6826483b19c819fc19727efe4e8ddbf12.zip | |
Address attribute naming and use `Bound` enum
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/nonzero.rs | 2 |
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); |
