Skip to content

Commit

Permalink
Rollup merge of #71324 - petrochenkov:passcheck2, r=RalfJung
Browse files Browse the repository at this point in the history
Fix some tests failing in `--pass check` mode

r? @RalfJung
  • Loading branch information
Dylan-DPC committed Apr 19, 2020
2 parents b20bd73 + 1c77e20 commit 9fc2443
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/consts/array-literal-index-oob.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// build-pass
// ignore-pass (emit codegen-time warnings and verify that they are indeed warnings and not errors)
// ignore-pass (test emits codegen-time warnings and verifies that they are not errors)

#![warn(const_err, unconditional_panic)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/promoted_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//[opt_with_overflow_checks]compile-flags: -C overflow-checks=on -O

// build-pass
// ignore-pass (emit codegen-time warnings and verify that they are indeed warnings and not errors)
// ignore-pass (test emits codegen-time warnings and verifies that they are not errors)

#![warn(const_err, arithmetic_overflow, unconditional_panic)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lint-exceeding-bitshifts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//[noopt]compile-flags: -C opt-level=0
//[opt]compile-flags: -O
//[opt_with_overflow_checks]compile-flags: -C overflow-checks=on -O

// build-pass
// ignore-pass (test emits codegen-time warnings and verifies that they are not errors)

#![crate_type="lib"]
#![warn(arithmetic_overflow, const_err)]
Expand Down

0 comments on commit 9fc2443

Please sign in to comment.