Skip to content

Commit

Permalink
Use rustc_env instead of exec_env for test
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Oct 9, 2019
1 parent bb4cd3a commit 1814964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ui/custom_ice_message.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// exec-env:RUST_BACKTRACE=0
// rustc-env:RUST_BACKTRACE=0
// normalize-stderr-test: "Clippy version: .*" -> "Clippy version: foo"
// normalize-stderr-test: "internal_lints.rs.*" -> "internal_lints.rs:1:1"
// normalize-stderr-test: "internal_lints.rs:\d*:\d*" -> "internal_lints.rs"

#![deny(clippy::internal)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/custom_ice_message.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
thread 'rustc' panicked at 'Testing the ICE message', clippy_lints/src/utils/internal_lints.rs:1:1
thread 'rustc' panicked at 'Testing the ICE message', clippy_lints/src/utils/internal_lints.rs
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

error: internal compiler error: unexpected panic
Expand Down

0 comments on commit 1814964

Please sign in to comment.