File tree 3 files changed +17
-11
lines changed 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ fn run_internal_tests(cx: &TestContext) {
220
220
if !RUN_INTERNAL_TESTS {
221
221
return ;
222
222
}
223
- let mut config = cx. base_config ( "ui-internal" , false ) ;
223
+ let mut config = cx. base_config ( "ui-internal" , true ) ;
224
224
config. bless_command = Some ( "cargo uitest --features internal -- -- --bless" . into ( ) ) ;
225
225
226
226
ui_test:: run_tests_generic (
Original file line number Diff line number Diff line change 10
10
#![ allow( clippy:: missing_clippy_version_attribute) ]
11
11
12
12
fn it_looks_like_you_are_trying_to_kill_clippy ( ) { }
13
+ //~^ ice: Would you like some help with that?
13
14
14
15
fn main ( ) { }
Original file line number Diff line number Diff line change 1
-
2
- thread '<unnamed>' panicked at clippy_lints/src/utils/internal_lints/produce_ice.rs:
3
- Would you like some help with that?
4
- note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5
-
6
- error: the compiler unexpectedly panicked. this is a bug.
1
+ note: no errors encountered even though delayed bugs were created
2
+
3
+ note: those delayed bugs will now be shown as internal compiler errors
4
+
5
+ error: internal compiler error: Would you like some help with that?
6
+ --> tests/ui-internal/custom_ice_message.rs:12:1
7
+ |
8
+ LL | fn it_looks_like_you_are_trying_to_kill_clippy() {}
9
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
+ |
11
+ note: delayed at clippy_lints/src/utils/internal_lints/produce_ice.rs - disabled backtrace
12
+ --> tests/ui-internal/custom_ice_message.rs:12:1
13
+ |
14
+ LL | fn it_looks_like_you_are_trying_to_kill_clippy() {}
15
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7
16
8
17
note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
9
18
@@ -13,9 +22,5 @@ note: rustc <version> running on <target>
13
22
14
23
note: compiler flags: -Z ui-testing -Z deduplicate-diagnostics=no
15
24
16
- query stack during panic:
17
- #0 [early_lint_checks] perform lints prior to AST lowering
18
- #1 [hir_crate] getting the crate HIR
19
- ... and 3 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
20
25
note: Clippy version: foo
21
26
You can’t perform that action at this time.
0 commit comments