From 4dfec6cab51619b98eacc27d4521d2e7162f2d50 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Sun, 22 Mar 2015 23:53:06 +0100 Subject: [PATCH] placate check-pretty and pretty-printer bug; see also issue 23623. --- src/test/run-fail/overflowing-lsh-4.rs | 3 ++- src/test/run-fail/overflowing-rsh-4.rs | 3 ++- 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 e7e5e6e6b9bd..ed25876cec47 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(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 c8e6c918e995..6e79a13d4e13 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(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*