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.
This commit is contained in:
Dan Robertson 2018-05-19 01:13:31 +00:00
parent 37a409177c
commit 8b02488834
No known key found for this signature in database
GPG Key ID: 45C4A652C47E42A5

View File

@ -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".