diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-12-30 02:09:29 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2021-01-23 16:51:23 +0000 |
| commit | f238148214790a0aa96c30b875b71ef6beb2485a (patch) | |
| tree | 3e080a063a08cf550dc6082f7a6680487bd15d47 | |
| parent | 0491e74dd9d6e860f8944a5ddaf03bfda8b16892 (diff) | |
| download | rust-f238148214790a0aa96c30b875b71ef6beb2485a.tar.gz rust-f238148214790a0aa96c30b875b71ef6beb2485a.zip | |
Allow libcore to be built with MIR inlining
Inlining caused new lints to get emitted, so we silence those lints now that we actually can.
| -rw-r--r-- | library/core/src/iter/range.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/iter/range.rs b/library/core/src/iter/range.rs index 4321b2187e1..9e7055a370c 100644 --- a/library/core/src/iter/range.rs +++ b/library/core/src/iter/range.rs @@ -200,6 +200,7 @@ macro_rules! step_identical_methods { } #[inline] + #[allow(arithmetic_overflow)] fn forward(start: Self, n: usize) -> Self { // In debug builds, trigger a panic on overflow. // This should optimize completely out in release builds. @@ -211,6 +212,7 @@ macro_rules! step_identical_methods { } #[inline] + #[allow(arithmetic_overflow)] fn backward(start: Self, n: usize) -> Self { // In debug builds, trigger a panic on overflow. // This should optimize completely out in release builds. |
