Skip to content

Commit

Permalink
Fix some tests failing in --pass check mode
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Apr 19, 2020
1 parent 36b1a92 commit 1c77e20
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 1c77e20

Please sign in to comment.