Skip to content

Commit

Permalink
Fix warning when building stage0 libcore
Browse files Browse the repository at this point in the history
When building stage0 a warning will be triggered when compiling libcore
due to align_to_offsets not being used.
  • Loading branch information
dlrobertson committed May 19, 2018
1 parent 37a4091 commit 8b02488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/slice/mod.rs
Expand Up @@ -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".
Expand Down

0 comments on commit 8b02488

Please sign in to comment.