Skip to content

Commit

Permalink
Fix assertion for when an unknown option is passed to rustc
Browse files Browse the repository at this point in the history
The compiler emits an error when it receives an unknown option.

Signed-off-by: David Calavera <david.calavera@gmail.com>
  • Loading branch information
calavera committed Feb 9, 2021
1 parent eb34617 commit 666380f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testsuite/profiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,11 @@ fn strip_passes_unknown_option_to_rustc() {
p.cargo("build --release -v")
.masquerade_as_nightly_cargo()
.with_status(101)
.with_stderr(
.with_stderr_contains(
"\
[COMPILING] foo [..]
[RUNNING] `rustc [..] -Z strip=unknown [..]`
[FINISHED] [..]
error: incorrect value `unknown` for debugging option `strip` - either `none`, `debuginfo`, or `symbols` was expected
",
)
.run();
Expand Down

0 comments on commit 666380f

Please sign in to comment.