Skip to content

Commit 47c17e3

Browse files
committed
---
yaml --- r: 193379 b: refs/heads/beta c: 4394720 h: refs/heads/master i: 193377: 0c798cb 193375: 43b32cb v: v3
1 parent 247c5cb commit 47c17e3

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: e7c986105f8af0b4ec4a91a63fbd1706282d401c
34+
refs/heads/beta: 4394720dae12c119a9b1aed492b1b24ee089d808
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/test/run-fail/overflowing-add.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:thread '<main>' panicked at 'arithmatic operation overflowed'
11+
// error-pattern:thread '<main>' panicked at 'arithmetic operation overflowed'
12+
13+
// (Work around constant-evaluation)
14+
fn value() -> u8 { 200 }
1215

1316
fn main() {
14-
let x = 200u8 + 200u8 + 200u8;
17+
let _x = value() + value() + value();
1518
}

branches/beta/src/test/run-fail/overflowing-mul.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:thread '<main>' panicked at 'arithmatic operation overflowed'
11+
// error-pattern:thread '<main>' panicked at 'arithmetic operation overflowed'
12+
13+
// (Work around constant-evaluation)
14+
fn value() -> u8 { 200 }
1215

1316
fn main() {
14-
let x = 200u8 + 4u8;
17+
let x = value() * 4;
1518
}

branches/beta/src/test/run-fail/overflowing-sub.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:thread '<main>' panicked at 'arithmatic operation overflowed'
11+
// error-pattern:thread '<main>' panicked at 'arithmetic operation overflowed'
12+
13+
// (Work around constant-evaluation)
14+
fn value() -> u8 { 42 }
1215

1316
fn main() {
14-
let x = 42u8 - 43u8;
17+
let _x = value() - (value() + 1);
1518
}

0 commit comments

Comments
 (0)