File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ impl<'cfg> Compilation<'cfg> {
140
140
pub fn rustdoc_process ( & self , pkg : & Package , target : & Target ) -> CargoResult < ProcessBuilder > {
141
141
let mut p = self . fill_env ( process ( & * self . config . rustdoc ( ) ?) , pkg, false ) ?;
142
142
if target. edition ( ) != Edition :: Edition2015 {
143
- p. arg ( "-Zunstable-options" ) ;
144
143
p. arg ( format ! ( "--edition={}" , target. edition( ) ) ) ;
145
144
}
146
145
Ok ( p)
Original file line number Diff line number Diff line change @@ -1118,12 +1118,12 @@ fn doc_edition() {
1118
1118
1119
1119
p. cargo ( "doc -v" )
1120
1120
. masquerade_as_nightly_cargo ( )
1121
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1121
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1122
1122
. run ( ) ;
1123
1123
1124
1124
p. cargo ( "test -v" )
1125
1125
. masquerade_as_nightly_cargo ( )
1126
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1126
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1127
1127
. run ( ) ;
1128
1128
}
1129
1129
@@ -1150,12 +1150,12 @@ fn doc_target_edition() {
1150
1150
1151
1151
p. cargo ( "doc -v" )
1152
1152
. masquerade_as_nightly_cargo ( )
1153
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1153
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1154
1154
. run ( ) ;
1155
1155
1156
1156
p. cargo ( "test -v" )
1157
1157
. masquerade_as_nightly_cargo ( )
1158
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1158
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1159
1159
. run ( ) ;
1160
1160
}
1161
1161
You can’t perform that action at this time.
0 commit comments