Skip to content

Commit 17aaafd

Browse files
committed
tests: relax bad_crate_type to only match error message prefix
So that the cargo test isn't sensitive to suggestions for known crate types that a rustc PR <rust-lang/rust#134720> is trying to add.
1 parent 0276088 commit 17aaafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/bad_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ fn bad_crate_type() {
427427
Caused by:
428428
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --crate-type bad_type` ([EXIT_STATUS]: 1)
429429
--- stderr
430-
[ERROR] unknown crate type: `bad_type`
430+
[ERROR] unknown crate type: `bad_type`[..]
431431
432432
433433
"#]])

0 commit comments

Comments
 (0)