Skip to content

Commit 30e34f3

Browse files
committed
Don't depend on crate names in tests/ui-fulldeps/missing-rustc-driver-error.rs
Not only are they a pain to update, but they differ depending on whether `parallel-rustc` is enabled or not
1 parent 934e7e6 commit 30e34f3

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

tests/ui-fulldeps/missing-rustc-driver-error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Test that we get the following hint when trying to use a compiler crate without rustc_driver.
22
// error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate
33
// compile-flags: --emit link
4-
// The exactly list of required crates depends on the target. as such only test Unix targets.
5-
// only-unix
4+
// normalize-stderr-test ".*crate .* required.*\n\n" -> ""
5+
// normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"
66

77
#![feature(rustc_private)]
88

tests/ui-fulldeps/missing-rustc-driver-error.stderr

+1-11
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,5 @@ error: crate `rustc_serialize` required to be available in rlib format, but was
22
|
33
= help: try adding `extern crate rustc_driver;` at the top level of this crate
44

5-
error: crate `smallvec` required to be available in rlib format, but was not found in this form
6-
7-
error: crate `thin_vec` required to be available in rlib format, but was not found in this form
8-
9-
error: crate `indexmap` required to be available in rlib format, but was not found in this form
10-
11-
error: crate `hashbrown` required to be available in rlib format, but was not found in this form
12-
13-
error: crate `equivalent` required to be available in rlib format, but was not found in this form
14-
15-
error: aborting due to 6 previous errors
5+
error: aborting due to NUMBER previous errors
166

0 commit comments

Comments
 (0)