diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2018-09-24 18:01:46 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2018-09-30 16:27:13 +0300 |
| commit | 0b3e5eb6cc0f2a28ff99d2962fbb4fd340736ef9 (patch) | |
| tree | 461c2eda5f8ff3b053d41de77d95331c35957c3c /src/libcore/slice/mod.rs | |
| parent | e5c6575801028f5e089ef2e7720aa1af9d452334 (diff) | |
| download | rust-0b3e5eb6cc0f2a28ff99d2962fbb4fd340736ef9.tar.gz rust-0b3e5eb6cc0f2a28ff99d2962fbb4fd340736ef9.zip | |
Simplify implementation of align_offset slightly
Diffstat (limited to 'src/libcore/slice/mod.rs')
| -rw-r--r-- | src/libcore/slice/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index aed9020d9d1..96280d70f7e 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -1756,7 +1756,7 @@ impl<T> [T] { fn gcd(a: usize, b: usize) -> usize { // iterative stein’s algorithm // We should still make this `const fn` (and revert to recursive algorithm if we do) - // because relying on llvm to consteval all this is… well, it makes me + // because relying on llvm to consteval all this is… well, it makes me uncomfortable. let (ctz_a, mut ctz_b) = unsafe { if a == 0 { return b; } if b == 0 { return a; } |
