From 18149644c9a401f0803237ce83ec31730a99a214 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 9 Oct 2019 07:45:05 +0200 Subject: [PATCH] Use rustc_env instead of exec_env for test --- tests/ui/custom_ice_message.rs | 4 ++-- tests/ui/custom_ice_message.stderr | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ui/custom_ice_message.rs b/tests/ui/custom_ice_message.rs index 1ceecf38032a..2f58fbce30bf 100644 --- a/tests/ui/custom_ice_message.rs +++ b/tests/ui/custom_ice_message.rs @@ -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)] diff --git a/tests/ui/custom_ice_message.stderr b/tests/ui/custom_ice_message.stderr index aa2793a4cd4f..817e48724337 100644 --- a/tests/ui/custom_ice_message.stderr +++ b/tests/ui/custom_ice_message.stderr @@ -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