replace //@ compile-flags: --edition with //@ edition

This commit is contained in:
Pietro Albini 2025-04-08 15:17:08 +02:00
parent 97c966bb40
commit cd371b90e2
No known key found for this signature in database
GPG key ID: CD76B35F7734769E
108 changed files with 181 additions and 135 deletions

View file

@ -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

View file

@ -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

View file

@ -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)]