Skip to content

Commit 2c3ad2d

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 ce127e1 commit 2c3ad2d

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// compile-flags: --emit link
44
// The exactly list of required crates depends on the target. as such only test Unix targets.
55
// only-unix
6+
// normalize-stderr-test ".*crate .* required.*\n\n" -> ""
7+
// normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"
68

79
#![feature(rustc_private)]
810

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)