Skip to content

Commit

Permalink
Don't depend on crate names in tests/ui-fulldeps/missing-rustc-driver…
Browse files Browse the repository at this point in the history
…-error.rs

Not only are they a pain to update, but they differ depending on whether `parallel-rustc` is enabled or not
  • Loading branch information
jyn514 committed Jul 9, 2023
1 parent ce127e1 commit 2c3ad2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions tests/ui-fulldeps/missing-rustc-driver-error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// compile-flags: --emit link
// The exactly list of required crates depends on the target. as such only test Unix targets.
// only-unix
// normalize-stderr-test ".*crate .* required.*\n\n" -> ""
// normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"

#![feature(rustc_private)]

Expand Down
12 changes: 1 addition & 11 deletions tests/ui-fulldeps/missing-rustc-driver-error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,5 @@ error: crate `rustc_serialize` required to be available in rlib format, but was
|
= help: try adding `extern crate rustc_driver;` at the top level of this crate

error: crate `smallvec` required to be available in rlib format, but was not found in this form

error: crate `thin_vec` required to be available in rlib format, but was not found in this form

error: crate `indexmap` required to be available in rlib format, but was not found in this form

error: crate `hashbrown` required to be available in rlib format, but was not found in this form

error: crate `equivalent` required to be available in rlib format, but was not found in this form

error: aborting due to 6 previous errors
error: aborting due to NUMBER previous errors

0 comments on commit 2c3ad2d

Please sign in to comment.