about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-22 23:53:06 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-22 23:53:06 +0100
commit4dfec6cab51619b98eacc27d4521d2e7162f2d50 (patch)
treebe63568a7a1d48fbf076de7e66959422612a8216 /src
parent5e47c6655b41a1bbabb2b2f8891e0a41c9c60b5c (diff)
downloadrust-4dfec6cab51619b98eacc27d4521d2e7162f2d50.tar.gz
rust-4dfec6cab51619b98eacc27d4521d2e7162f2d50.zip
placate check-pretty and pretty-printer bug; see also issue 23623.
Diffstat (limited to 'src')
-rw-r--r--src/test/run-fail/overflowing-lsh-4.rs3
-rw-r--r--src/test/run-fail/overflowing-rsh-4.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/run-fail/overflowing-lsh-4.rs b/src/test/run-fail/overflowing-lsh-4.rs
index e7e5e6e6b9b..ed25876cec4 100644
--- a/src/test/run-fail/overflowing-lsh-4.rs
+++ b/src/test/run-fail/overflowing-lsh-4.rs
@@ -18,7 +18,8 @@
 fn id<T>(x: T) -> T { x }
 
 fn main() {
-    let x = 1_i8 << id(17); // signals overflow when checking is on
+    // this signals overflow when checking is on
+    let x = 1_i8 << id(17);
 
     // ... but when checking is off, the fallback will truncate the
     // input to its lower three bits (= 1). Note that this is *not*
diff --git a/src/test/run-fail/overflowing-rsh-4.rs b/src/test/run-fail/overflowing-rsh-4.rs
index c8e6c918e99..6e79a13d4e1 100644
--- a/src/test/run-fail/overflowing-rsh-4.rs
+++ b/src/test/run-fail/overflowing-rsh-4.rs
@@ -18,7 +18,8 @@
 fn id<T>(x: T) -> T { x }
 
 fn main() {
-    let x = 2_i8 >> id(17); // signals overflow when checking is on
+    // this signals overflow when checking is on
+    let x = 2_i8 >> id(17);
 
     // ... but when checking is off, the fallback will truncate the
     // input to its lower three bits (= 1). Note that this is *not*