Skip to content

Commit 666380f

Browse files
committed
Fix assertion for when an unknown option is passed to rustc
The compiler emits an error when it receives an unknown option. Signed-off-by: David Calavera <[email protected]>
1 parent eb34617 commit 666380f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/profiles.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,11 @@ fn strip_passes_unknown_option_to_rustc() {
572572
p.cargo("build --release -v")
573573
.masquerade_as_nightly_cargo()
574574
.with_status(101)
575-
.with_stderr(
575+
.with_stderr_contains(
576576
"\
577577
[COMPILING] foo [..]
578578
[RUNNING] `rustc [..] -Z strip=unknown [..]`
579-
[FINISHED] [..]
579+
error: incorrect value `unknown` for debugging option `strip` - either `none`, `debuginfo`, or `symbols` was expected
580580
",
581581
)
582582
.run();

0 commit comments

Comments
 (0)