Skip to content

Commit 1814964

Browse files
committed
Use rustc_env instead of exec_env for test
1 parent bb4cd3a commit 1814964

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/custom_ice_message.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// exec-env:RUST_BACKTRACE=0
1+
// rustc-env:RUST_BACKTRACE=0
22
// normalize-stderr-test: "Clippy version: .*" -> "Clippy version: foo"
3-
// normalize-stderr-test: "internal_lints.rs.*" -> "internal_lints.rs:1:1"
3+
// normalize-stderr-test: "internal_lints.rs:\d*:\d*" -> "internal_lints.rs"
44

55
#![deny(clippy::internal)]
66

tests/ui/custom_ice_message.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
thread 'rustc' panicked at 'Testing the ICE message', clippy_lints/src/utils/internal_lints.rs:1:1
1+
thread 'rustc' panicked at 'Testing the ICE message', clippy_lints/src/utils/internal_lints.rs
22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
33

44
error: internal compiler error: unexpected panic

0 commit comments

Comments
 (0)