Skip to content

Commit

Permalink
Update ui test output
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 30, 2018
1 parent cefcf05 commit 5f46e5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/test/ui/const-eval/promoted_errors.stderr
Expand Up @@ -2,21 +2,21 @@ warning: constant evaluation error
--> $DIR/promoted_errors.rs:14:20
|
LL | println!("{}", 0u32 - 1);
| ^^^^^^^^ attempted to do overflowing math
| ^^^^^^^^ attempt to subtract with overflow
|
= note: #[warn(const_err)] on by default

warning: constant evaluation error
--> $DIR/promoted_errors.rs:14:20
|
LL | println!("{}", 0u32 - 1);
| ^^^^^^^^ attempted to do overflowing math
| ^^^^^^^^ attempt to subtract with overflow

warning: constant evaluation error
--> $DIR/promoted_errors.rs:17:14
|
LL | let _x = 0u32 - 1;
| ^^^^^^^^ attempted to do overflowing math
| ^^^^^^^^ attempt to subtract with overflow

warning: attempt to divide by zero
--> $DIR/promoted_errors.rs:19:20
Expand All @@ -28,7 +28,7 @@ warning: constant evaluation error
--> $DIR/promoted_errors.rs:19:20
|
LL | println!("{}", 1/(1-1));
| ^^^^^^^ attempted to do overflowing math
| ^^^^^^^ attempt to divide with overflow

warning: attempt to divide by zero
--> $DIR/promoted_errors.rs:22:14
Expand All @@ -40,11 +40,11 @@ warning: constant evaluation error
--> $DIR/promoted_errors.rs:22:14
|
LL | let _x = 1/(1-1);
| ^^^^^^^ attempted to do overflowing math
| ^^^^^^^ attempt to divide with overflow

warning: constant evaluation error
--> $DIR/promoted_errors.rs:25:20
|
LL | println!("{}", 1/(false as u32));
| ^^^^^^^^^^^^^^^^ attempted to do overflowing math
| ^^^^^^^^^^^^^^^^ attempt to divide with overflow

2 changes: 1 addition & 1 deletion src/test/ui/error-codes/E0080.stderr
Expand Up @@ -24,7 +24,7 @@ warning: constant evaluation error
--> $DIR/E0080.rs:14:9
|
LL | Y = (1 / 0) //~ ERROR E0080
| ^^^^^^^ attempted to do overflowing math
| ^^^^^^^ attempt to divide with overflow

error[E0080]: constant evaluation error
--> $DIR/E0080.rs:14:9
Expand Down

0 comments on commit 5f46e5c

Please sign in to comment.