about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-11-07 15:58:59 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-11-07 15:58:59 +0100
commitf4da71e04e1929d91a84855940c04d69d6166ce3 (patch)
treece29fe3ed71812f37dfcbbfa1e645ca875bbcc2d
parent58c7a786b046b63c64428c68778cec83ee35cca0 (diff)
downloadrust-f4da71e04e1929d91a84855940c04d69d6166ce3.tar.gz
rust-f4da71e04e1929d91a84855940c04d69d6166ce3.zip
work around deviation in diagnostic output for opt-level=0 by forcing `-O`.
-rw-r--r--src/test/ui/lint/lint-type-overflow2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/lint/lint-type-overflow2.rs b/src/test/ui/lint/lint-type-overflow2.rs
index c5fea3cd6ca..82ec3be1596 100644
--- a/src/test/ui/lint/lint-type-overflow2.rs
+++ b/src/test/ui/lint/lint-type-overflow2.rs
@@ -7,8 +7,8 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
-//
 
+// compile-flags: -O
 #![warn(overflowing_literals)]
 #![warn(const_err)]
 // compile-pass