Remove comment about a branch being optimized out, fix #45831

Most often, this code is used through the `std::heap::Heap`
and `#[gloabal_allocator]` indirection, so this branch is not
optimized out anymore.
This commit is contained in:
Simon Sapin
2017-11-20 15:55:31 +01:00
parent 2dd268b652
commit 43e32b5346
2 changed files with 2 additions and 4 deletions

View File

@@ -25,8 +25,7 @@
#![rustc_alloc_kind = "lib"]
// The minimum alignment guaranteed by the architecture. This value is used to
// add fast paths for low alignment values. In practice, the alignment is a
// constant at the call site and the branch will be optimized out.
// add fast paths for low alignment values.
#[cfg(all(any(target_arch = "x86",
target_arch = "arm",
target_arch = "mips",