File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ fn build_base_args<'a, 'cfg>(
911
911
let manifest = unit. pkg . manifest ( ) ;
912
912
913
913
if manifest. features ( ) . is_enabled ( Feature :: edition ( ) ) {
914
- cmd. arg ( format ! ( "-Zedition ={}" , manifest. edition( ) ) ) ;
914
+ cmd. arg ( format ! ( "--edition ={}" , manifest. edition( ) ) ) ;
915
915
}
916
916
917
917
// Disable LTO for host builds as prefer_dynamic and it are mutually
Original file line number Diff line number Diff line change @@ -1125,7 +1125,7 @@ fn test_edition() {
1125
1125
. with_stderr_contains ( format ! ( "\
1126
1126
[COMPILING] foo v0.0.1 ({url})
1127
1127
[RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib \
1128
- --emit=dep-info,link -Zedition =2018 -C debuginfo=2 \
1128
+ --emit=dep-info,link --edition =2018 -C debuginfo=2 \
1129
1129
-C metadata=[..] \
1130
1130
--out-dir [..] \
1131
1131
-L dependency={dir}[/]target[/]debug[/]deps`
@@ -1159,7 +1159,7 @@ fn test_edition_missing() {
1159
1159
. with_stderr_contains ( format ! ( "\
1160
1160
[COMPILING] foo v0.0.1 ({url})
1161
1161
[RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib \
1162
- --emit=dep-info,link -Zedition =2015 -C debuginfo=2 \
1162
+ --emit=dep-info,link --edition =2015 -C debuginfo=2 \
1163
1163
-C metadata=[..] \
1164
1164
--out-dir [..] \
1165
1165
-L dependency={dir}[/]target[/]debug[/]deps`
You can’t perform that action at this time.
0 commit comments