We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d3ef5 commit a67c9e5Copy full SHA for a67c9e5
tests/pass/overflow_checks_off.rs
@@ -7,10 +7,9 @@
7
// Miri does not implement the codegen-time hack that backs `#[rustc_inherit_overflow_checks]`.
8
// use std::ops::*;
9
10
-
11
// Disable _compile-time_ overflow linting
12
// so that we can test runtime overflow checks
13
- #![allow(arithmetic_overflow)]
+#![allow(arithmetic_overflow)]
14
15
fn main() {
16
assert_eq!(-{ -0x80i8 }, -0x80);
0 commit comments