replace //@ compile-flags: --edition
with //@ edition
This commit is contained in:
parent
97c966bb40
commit
cd371b90e2
108 changed files with 181 additions and 135 deletions
|
@ -1,7 +1,8 @@
|
|||
// FIXME: if/when the output of the test harness can be tested on its own, this test should be
|
||||
// adapted to use that, and that normalize line can go away
|
||||
|
||||
//@ compile-flags:--test --edition 2021
|
||||
//@ compile-flags: --test
|
||||
//@ edition: 2021
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
running 1 test
|
||||
test $DIR/failed-doctest-should-panic-2021.rs - Foo (line 9) ... FAILED
|
||||
test $DIR/failed-doctest-should-panic-2021.rs - Foo (line 10) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/failed-doctest-should-panic-2021.rs - Foo (line 9) stdout ----
|
||||
---- $DIR/failed-doctest-should-panic-2021.rs - Foo (line 10) stdout ----
|
||||
Test executable succeeded, but it's marked `should_panic`.
|
||||
|
||||
failures:
|
||||
$DIR/failed-doctest-should-panic-2021.rs - Foo (line 9)
|
||||
$DIR/failed-doctest-should-panic-2021.rs - Foo (line 10)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
//@ check-pass
|
||||
//@ aux-build: inner-crate-doc.rs
|
||||
//@ compile-flags: --extern inner_crate_doc --edition 2018
|
||||
//@ compile-flags: --extern inner_crate_doc
|
||||
//@ edition: 2018
|
||||
|
||||
/// Import doc comment [inner_crate_doc]
|
||||
#[doc(inline)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue