File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1097,7 +1097,10 @@ impl CliUnstable {
1097
1097
"script" => self . script = parse_empty ( k, v) ?,
1098
1098
"target-applies-to-host" => self . target_applies_to_host = parse_empty ( k, v) ?,
1099
1099
"unstable-options" => self . unstable_options = parse_empty ( k, v) ?,
1100
- _ => bail ! ( "unknown `-Z` flag specified: {}" , k) ,
1100
+ _ => bail ! ( "\
1101
+ unknown `-Z` flag specified: {k}\n \n \
1102
+ For available unstable features, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html\n \
1103
+ If you intended to use an unstable rustc feature, try setting `RUSTFLAGS=\" -Z{k}\" `") ,
1101
1104
}
1102
1105
1103
1106
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -594,7 +594,13 @@ fn z_flags_rejected() {
594
594
p. cargo ( "check -Zarg" )
595
595
. masquerade_as_nightly_cargo ( & [ "test-dummy-unstable" ] )
596
596
. with_status ( 101 )
597
- . with_stderr ( "error: unknown `-Z` flag specified: arg" )
597
+ . with_stderr (
598
+ r#"error: unknown `-Z` flag specified: arg
599
+
600
+ For available unstable features, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html
601
+ If you intended to use an unstable rustc feature, try setting `RUSTFLAGS="-Zarg"`
602
+ "# ,
603
+ )
598
604
. run ( ) ;
599
605
600
606
p. cargo ( "check -Zprint-im-a-teapot" )
You can’t perform that action at this time.
0 commit comments