File tree 3 files changed +8
-12
lines changed 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -238,12 +238,10 @@ fn run_doc_tests(
238
238
}
239
239
240
240
if doctest_xcompile {
241
- p. arg ( "-Zunstable-options" ) ;
242
- p. arg ( "--enable-per-target-ignores" ) ;
243
241
if let Some ( ( runtool, runtool_args) ) = compilation. target_runner ( unit. kind ) {
244
- p. arg ( "--runtool" ) . arg ( runtool) ;
242
+ p. arg ( "--test- runtool" ) . arg ( runtool) ;
245
243
for arg in runtool_args {
246
- p. arg ( "--runtool-arg" ) . arg ( arg) ;
244
+ p. arg ( "--test- runtool-arg" ) . arg ( arg) ;
247
245
}
248
246
}
249
247
if let Some ( linker) = linker {
Original file line number Diff line number Diff line change @@ -285,8 +285,7 @@ This flag changes `cargo test`'s behavior when handling doctests when
285
285
a target is passed. Currently, if a target is passed that is different
286
286
from the host cargo will simply skip testing doctests. If this flag is
287
287
present, cargo will continue as normal, passing the tests to doctest,
288
- while also passing it a ` --target ` option, as well as enabling
289
- ` -Zunstable-features --enable-per-target-ignores ` and passing along
288
+ while also passing it a ` --target ` option, as well as passing along
290
289
information from ` .cargo/config.toml ` . See the rustc issue for more information.
291
290
292
291
``` sh
Original file line number Diff line number Diff line change @@ -4738,8 +4738,7 @@ fn test_dep_with_dev() {
4738
4738
4739
4739
#[ cargo_test( nightly, reason = "-Zdoctest-xcompile is unstable" ) ]
4740
4740
fn cargo_test_doctest_xcompile_ignores ( ) {
4741
- // -Zdoctest-xcompile also enables --enable-per-target-ignores which
4742
- // allows the ignore-TARGET syntax.
4741
+ // Test for `ignore-...` syntax with -Zdoctest-xcompile.
4743
4742
let p = project ( )
4744
4743
. file ( "Cargo.toml" , & basic_lib_manifest ( "foo" ) )
4745
4744
. file (
@@ -4766,15 +4765,15 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
4766
4765
. run ( ) ;
4767
4766
#[ cfg( target_arch = "x86_64" ) ]
4768
4767
p. cargo ( "test" )
4769
- . with_status ( 101 )
4770
4768
. with_stdout_data ( str![ [ r#"
4771
4769
...
4772
- test result: FAILED . 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in [ELAPSED]s
4770
+ test result: ok . 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in [ELAPSED]s
4773
4771
...
4774
- "# ] ] ,
4775
- )
4772
+ "# ] ] )
4776
4773
. run ( ) ;
4777
4774
4775
+ // Should be the same with or without -Zdoctest-xcompile because `ignore-`
4776
+ // syntax is always enabled.
4778
4777
#[ cfg( not( target_arch = "x86_64" ) ) ]
4779
4778
p. cargo ( "test -Zdoctest-xcompile" )
4780
4779
. masquerade_as_nightly_cargo ( & [ "doctest-xcompile" ] )
You can’t perform that action at this time.
0 commit comments