File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ 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" ) ;
143
144
p. arg ( format ! ( "--edition={}" , target. edition( ) ) ) ;
144
145
}
145
146
Ok ( p)
Original file line number Diff line number Diff line change @@ -1121,12 +1121,12 @@ fn doc_edition() {
1121
1121
1122
1122
p. cargo ( "doc -v" )
1123
1123
. masquerade_as_nightly_cargo ( )
1124
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1124
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1125
1125
. run ( ) ;
1126
1126
1127
1127
p. cargo ( "test -v" )
1128
1128
. masquerade_as_nightly_cargo ( )
1129
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1129
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1130
1130
. run ( ) ;
1131
1131
}
1132
1132
@@ -1153,12 +1153,12 @@ fn doc_target_edition() {
1153
1153
1154
1154
p. cargo ( "doc -v" )
1155
1155
. masquerade_as_nightly_cargo ( )
1156
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1156
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1157
1157
. run ( ) ;
1158
1158
1159
1159
p. cargo ( "test -v" )
1160
1160
. masquerade_as_nightly_cargo ( )
1161
- . with_stderr_contains ( "[RUNNING] `rustdoc [..]--edition=2018[..]" )
1161
+ . with_stderr_contains ( "[RUNNING] `rustdoc [..]-Zunstable-options - -edition=2018[..]" )
1162
1162
. run ( ) ;
1163
1163
}
1164
1164
You can’t perform that action at this time.
0 commit comments