File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,15 @@ impl Metadata {
258
258
259
259
cargo_args. extend ( self . just_cargo_args ( ) ) ;
260
260
261
+ if !self . rustc_args . is_empty ( ) {
262
+ cargo_args. push ( "-Z" . into ( ) ) ;
263
+ cargo_args. push ( "unstable-options" . into ( ) ) ;
264
+ cargo_args. push ( "--config" . into ( ) ) ;
265
+ let rustflags =
266
+ toml:: to_string ( & self . rustc_args ) . expect ( "serializing a string should never fail" ) ;
267
+ cargo_args. push ( format ! ( "build.rustflags={}" , rustflags) ) ;
268
+ }
269
+
261
270
cargo_args. extend ( additional_args. iter ( ) . map ( |s| s. to_owned ( ) ) ) ;
262
271
cargo_args. push ( "--" . into ( ) ) ;
263
272
cargo_args. extend_from_slice ( & self . rustdoc_args ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ impl Default for Limits {
19
19
timeout : Duration :: from_secs ( 15 * 60 ) , // 15 minutes
20
20
targets : 10 ,
21
21
networking : false ,
22
- max_log_size : 100 * 1024 , // 100 KB
22
+ max_log_size : 10000 * 1024 , // 100 KB
23
23
}
24
24
}
25
25
}
Original file line number Diff line number Diff line change @@ -621,8 +621,7 @@ impl RustwideBuilder {
621
621
. collect :: < String > ( ) ,
622
622
) ?;
623
623
624
- let mut rustc_args = docsrs_metadata. just_rustc_args ( ) ;
625
- rustc_args. push ( "--cap-lints=warn" . into ( ) ) ;
624
+ let rustc_args = docsrs_metadata. just_rustc_args ( ) ;
626
625
627
626
let mut command = build
628
627
. cargo ( )
You can’t perform that action at this time.
0 commit comments