File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
src/tools/run-make-support/src
diagnostics-traits-from-duplicate-crates
rustdoc-merge-no-input-finalize Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,13 @@ impl CompletedProcess {
387387 self
388388 }
389389
390+ /// Checks that `stderr` contains the Internal Compiler Error message.
391+ #[ track_caller]
392+ pub fn assert_ice ( & self ) -> & Self {
393+ self . assert_stderr_not_contains ( "error: the compiler unexpectedly panicked. this is a bug" ) ;
394+ self
395+ }
396+
390397 /// Checks that `stderr` does not contain the regex pattern `unexpected`.
391398 #[ track_caller]
392399 pub fn assert_stderr_not_contains_regex < S : AsRef < str > > ( & self , unexpected : S ) -> & Self {
Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ fn main() {
4343 . extern_ ( "minibevy" , "libminibevy-b.rmeta" )
4444 . extern_ ( "minirapier" , "libminirapier.rmeta" )
4545 . run_fail ( )
46- . assert_stderr_not_contains ( "error: the compiler unexpectedly panicked. this is a bug" ) ;
46+ . assert_ice ( ) ;
4747}
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ fn main() {
2424 . arg ( format ! ( "--include-parts-dir={}" , parts_out_dir. display( ) ) )
2525 . arg ( "--merge=finalize" )
2626 . run ( ) ;
27- output. assert_stderr_not_contains ( "error: the compiler unexpectedly panicked. this is a bug." ) ;
27+ output. assert_ice ( ) ;
2828}
Original file line number Diff line number Diff line change @@ -17,7 +17,5 @@ fn main() {
1717
1818 // We also double-check that we don't have the panic text in the output.
1919 output. assert_stdout_contains ( "Failed to spawn " ) ;
20- output. assert_stderr_not_contains ( "the compiler unexpectedly panicked. this is a bug." ) ;
21- // Just in case...
22- output. assert_stdout_not_contains ( "the compiler unexpectedly panicked. this is a bug." ) ;
20+ output. assert_ice ( ) ;
2321}
You can’t perform that action at this time.
0 commit comments