diff options
| author | Dan Robertson <danlrobertson89@gmail.com> | 2018-05-19 01:13:31 +0000 |
|---|---|---|
| committer | Dan Robertson <danlrobertson89@gmail.com> | 2018-05-19 01:13:31 +0000 |
| commit | 8b024888349f2c28b74c6697a33572dbd0d077b0 (patch) | |
| tree | 4db9f838ef5bff44d7e8fd4d2e14601685d9a830 /src/libcore/slice | |
| parent | 37a409177c80e6f301c41833fc7ee8fda2412c00 (diff) | |
| download | rust-8b024888349f2c28b74c6697a33572dbd0d077b0.tar.gz rust-8b024888349f2c28b74c6697a33572dbd0d077b0.zip | |
Fix warning when building stage0 libcore
When building stage0 a warning will be triggered when compiling libcore due to align_to_offsets not being used.
Diffstat (limited to 'src/libcore/slice')
| -rw-r--r-- | src/libcore/slice/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index fdc9aa473e8..3b19a401859 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -1698,6 +1698,7 @@ impl<T> [T] { } /// Function to calculate lenghts of the middle and trailing slice for `align_to{,_mut}`. + #[cfg(not(stage0))] fn align_to_offsets<U>(&self) -> (usize, usize) { // What we gonna do about `rest` is figure out what multiple of `U`s we can put in a // lowest number of `T`s. And how many `T`s we need for each such "multiple". |
