Update rustdoc ui tests
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
//@ compile-flags: --test --test-args=--test-threads=1
|
||||
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
||||
|
||||
/// ```
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/2024-doctests-checks.rs - Foo (line 8) ... ok
|
||||
test $DIR/2024-doctests-checks.rs - Foo (line 10) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
running 1 test
|
||||
test $DIR/2024-doctests-checks.rs - Foo (line 15) ... ok
|
||||
test $DIR/2024-doctests-checks.rs - Foo (line 17) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
|
||||
/// This doctest is used to ensure that if a crate attribute is present,
|
||||
/// it will not be part of the merged doctests.
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/2024-doctests-crate-attribute.rs - Foo (line 20) ... ok
|
||||
test $DIR/2024-doctests-crate-attribute.rs - Foo (line 22) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
running 1 test
|
||||
test $DIR/2024-doctests-crate-attribute.rs - Foo (line 11) ... ok
|
||||
test $DIR/2024-doctests-crate-attribute.rs - Foo (line 13) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/dead-code-2024.rs - f (line 13) - compile ... FAILED
|
||||
test $DIR/dead-code-2024.rs - f (line 15) - compile ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/dead-code-2024.rs - f (line 13) stdout ----
|
||||
---- $DIR/dead-code-2024.rs - f (line 15) stdout ----
|
||||
error: trait `T` is never used
|
||||
--> $DIR/dead-code-2024.rs:14:7
|
||||
--> $DIR/dead-code-2024.rs:16:7
|
||||
|
|
||||
LL | trait T { fn f(); }
|
||||
| ^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-2024.rs:12:9
|
||||
--> $DIR/dead-code-2024.rs:14:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -23,7 +23,8 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/dead-code-2024.rs - f (line 13)
|
||||
$DIR/dead-code-2024.rs - f (line 15)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//@ compile-flags:--test --test-args=--test-threads=1
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
|
||||
running 13 tests
|
||||
test $DIR/dead-code-items.rs - A (line 32) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - A (line 88) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - A::field (line 39) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - A::method (line 94) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - C (line 22) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - Enum (line 70) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - Enum::Variant1 (line 77) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - MyTrait (line 103) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - S (line 14) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - U (line 48) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - U::field (line 55) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - U::field2 (line 61) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - A (line 34) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - A (line 90) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - A::field (line 41) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - A::method (line 96) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - C (line 24) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - Enum (line 72) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - Enum::Variant1 (line 79) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - MyTrait (line 105) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 112) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - S (line 16) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - U (line 50) - compile ... ok
|
||||
test $DIR/dead-code-items.rs - U::field (line 57) - compile ... FAILED
|
||||
test $DIR/dead-code-items.rs - U::field2 (line 63) - compile ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/dead-code-items.rs - A::field (line 39) stdout ----
|
||||
---- $DIR/dead-code-items.rs - A::field (line 41) stdout ----
|
||||
error: trait `DeadCodeInField` is never used
|
||||
--> $DIR/dead-code-items.rs:40:7
|
||||
--> $DIR/dead-code-items.rs:42:7
|
||||
|
|
||||
LL | trait DeadCodeInField {}
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:38:9
|
||||
--> $DIR/dead-code-items.rs:40:9
|
||||
|
|
||||
LL | #![deny(dead_code)]
|
||||
| ^^^^^^^^^
|
||||
@@ -32,15 +32,15 @@ LL | #![deny(dead_code)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - C (line 22) stdout ----
|
||||
---- $DIR/dead-code-items.rs - C (line 24) stdout ----
|
||||
error: unused variable: `unused_error`
|
||||
--> $DIR/dead-code-items.rs:23:5
|
||||
--> $DIR/dead-code-items.rs:25:5
|
||||
|
|
||||
LL | let unused_error = 5;
|
||||
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_error`
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:20:9
|
||||
--> $DIR/dead-code-items.rs:22:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -49,15 +49,15 @@ LL | #![deny(warnings)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - Enum (line 70) stdout ----
|
||||
---- $DIR/dead-code-items.rs - Enum (line 72) stdout ----
|
||||
error: unused variable: `not_dead_code_but_unused`
|
||||
--> $DIR/dead-code-items.rs:71:5
|
||||
--> $DIR/dead-code-items.rs:73:5
|
||||
|
|
||||
LL | let not_dead_code_but_unused = 5;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_dead_code_but_unused`
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:68:9
|
||||
--> $DIR/dead-code-items.rs:70:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -66,15 +66,15 @@ LL | #![deny(warnings)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - Enum::Variant1 (line 77) stdout ----
|
||||
---- $DIR/dead-code-items.rs - Enum::Variant1 (line 79) stdout ----
|
||||
error: unused variable: `unused_in_variant`
|
||||
--> $DIR/dead-code-items.rs:80:17
|
||||
--> $DIR/dead-code-items.rs:82:17
|
||||
|
|
||||
LL | fn main() { let unused_in_variant = 5; }
|
||||
| ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_variant`
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:75:9
|
||||
--> $DIR/dead-code-items.rs:77:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -83,15 +83,15 @@ LL | #![deny(warnings)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - MyTrait (line 103) stdout ----
|
||||
---- $DIR/dead-code-items.rs - MyTrait (line 105) stdout ----
|
||||
error: trait `StillDeadCodeAtMyTrait` is never used
|
||||
--> $DIR/dead-code-items.rs:104:7
|
||||
--> $DIR/dead-code-items.rs:106:7
|
||||
|
|
||||
LL | trait StillDeadCodeAtMyTrait { }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:102:9
|
||||
--> $DIR/dead-code-items.rs:104:9
|
||||
|
|
||||
LL | #![deny(dead_code)]
|
||||
| ^^^^^^^^^
|
||||
@@ -99,15 +99,15 @@ LL | #![deny(dead_code)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) stdout ----
|
||||
---- $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 112) stdout ----
|
||||
error: unused variable: `unused_in_impl`
|
||||
--> $DIR/dead-code-items.rs:113:17
|
||||
--> $DIR/dead-code-items.rs:115:17
|
||||
|
|
||||
LL | fn main() { let unused_in_impl = 5; }
|
||||
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_impl`
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:108:9
|
||||
--> $DIR/dead-code-items.rs:110:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -116,15 +116,15 @@ LL | #![deny(warnings)]
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
---- $DIR/dead-code-items.rs - U::field (line 55) stdout ----
|
||||
---- $DIR/dead-code-items.rs - U::field (line 57) stdout ----
|
||||
error: trait `DeadCodeInUnionField` is never used
|
||||
--> $DIR/dead-code-items.rs:56:7
|
||||
--> $DIR/dead-code-items.rs:58:7
|
||||
|
|
||||
LL | trait DeadCodeInUnionField {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-items.rs:54:9
|
||||
--> $DIR/dead-code-items.rs:56:9
|
||||
|
|
||||
LL | #![deny(dead_code)]
|
||||
| ^^^^^^^^^
|
||||
@@ -134,13 +134,14 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/dead-code-items.rs - A::field (line 39)
|
||||
$DIR/dead-code-items.rs - C (line 22)
|
||||
$DIR/dead-code-items.rs - Enum (line 70)
|
||||
$DIR/dead-code-items.rs - Enum::Variant1 (line 77)
|
||||
$DIR/dead-code-items.rs - MyTrait (line 103)
|
||||
$DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110)
|
||||
$DIR/dead-code-items.rs - U::field (line 55)
|
||||
$DIR/dead-code-items.rs - A::field (line 41)
|
||||
$DIR/dead-code-items.rs - C (line 24)
|
||||
$DIR/dead-code-items.rs - Enum (line 72)
|
||||
$DIR/dead-code-items.rs - Enum::Variant1 (line 79)
|
||||
$DIR/dead-code-items.rs - MyTrait (line 105)
|
||||
$DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 112)
|
||||
$DIR/dead-code-items.rs - U::field (line 57)
|
||||
|
||||
test result: FAILED. 6 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
#![doc(test(attr(allow(unused_variables))))]
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/dead-code-module-2.rs - g (line 24) - compile ... ok
|
||||
test $DIR/dead-code-module-2.rs - g (line 26) - compile ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
running 1 test
|
||||
test $DIR/dead-code-module-2.rs - my_mod::f (line 16) - compile ... FAILED
|
||||
test $DIR/dead-code-module-2.rs - my_mod::f (line 18) - compile ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/dead-code-module-2.rs - my_mod::f (line 16) stdout ----
|
||||
---- $DIR/dead-code-module-2.rs - my_mod::f (line 18) stdout ----
|
||||
error: trait `T` is never used
|
||||
--> $DIR/dead-code-module-2.rs:17:7
|
||||
--> $DIR/dead-code-module-2.rs:19:7
|
||||
|
|
||||
LL | trait T { fn f(); }
|
||||
| ^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-module-2.rs:15:9
|
||||
--> $DIR/dead-code-module-2.rs:17:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -29,7 +29,8 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/dead-code-module-2.rs - my_mod::f (line 16)
|
||||
$DIR/dead-code-module-2.rs - my_mod::f (line 18)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
mod my_mod {
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/dead-code-module.rs - my_mod::f (line 14) - compile ... FAILED
|
||||
test $DIR/dead-code-module.rs - my_mod::f (line 16) - compile ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/dead-code-module.rs - my_mod::f (line 14) stdout ----
|
||||
---- $DIR/dead-code-module.rs - my_mod::f (line 16) stdout ----
|
||||
error: trait `T` is never used
|
||||
--> $DIR/dead-code-module.rs:15:7
|
||||
--> $DIR/dead-code-module.rs:17:7
|
||||
|
|
||||
LL | trait T { fn f(); }
|
||||
| ^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dead-code-module.rs:13:9
|
||||
--> $DIR/dead-code-module.rs:15:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
@@ -23,7 +23,8 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/dead-code-module.rs - my_mod::f (line 14)
|
||||
$DIR/dead-code-module.rs - my_mod::f (line 16)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
//@ compile-flags:--test --test-args=--test-threads=1
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/130470
|
||||
|
||||
@@ -22,3 +22,4 @@ failures:
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "panicked at .+rs:" -> "panicked at $$TMP:"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ failure-status: 101
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/edition-2024-error-output.rs - (line 12) ... FAILED
|
||||
test $DIR/edition-2024-error-output.rs - (line 14) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/edition-2024-error-output.rs - (line 12) stdout ----
|
||||
---- $DIR/edition-2024-error-output.rs - (line 14) stdout ----
|
||||
Test executable failed (exit status: 101).
|
||||
|
||||
stderr:
|
||||
@@ -18,7 +18,8 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
$DIR/edition-2024-error-output.rs - (line 12)
|
||||
$DIR/edition-2024-error-output.rs - (line 14)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```should_panic
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/failed-doctest-should-panic.rs - Foo (line 10) - should panic ... FAILED
|
||||
test $DIR/failed-doctest-should-panic.rs - Foo (line 12) - should panic ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/failed-doctest-should-panic.rs - Foo (line 10) stdout ----
|
||||
note: test did not panic as expected at $DIR/failed-doctest-should-panic.rs:10:0
|
||||
---- $DIR/failed-doctest-should-panic.rs - Foo (line 12) stdout ----
|
||||
note: test did not panic as expected at $DIR/failed-doctest-should-panic.rs:12:0
|
||||
|
||||
failures:
|
||||
$DIR/failed-doctest-should-panic.rs - Foo (line 10)
|
||||
$DIR/failed-doctest-should-panic.rs - Foo (line 12)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/failed-doctest-test-crate.rs - m (line 14) ... FAILED
|
||||
test $DIR/failed-doctest-test-crate.rs - m (line 16) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/failed-doctest-test-crate.rs - m (line 14) stdout ----
|
||||
---- $DIR/failed-doctest-test-crate.rs - m (line 16) stdout ----
|
||||
error[E0432]: unresolved import `test`
|
||||
--> $DIR/failed-doctest-test-crate.rs:15:5
|
||||
--> $DIR/failed-doctest-test-crate.rs:17:5
|
||||
|
|
||||
LL | use test::*;
|
||||
| ^^^^ use of unresolved module or unlinked crate `test`
|
||||
@@ -22,7 +22,7 @@ For more information about this error, try `rustc --explain E0432`.
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/failed-doctest-test-crate.rs - m (line 14)
|
||||
$DIR/failed-doctest-test-crate.rs - m (line 16)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/failed-doctest-test-crate.rs - m (line 14) ... FAILED
|
||||
test $DIR/failed-doctest-test-crate.rs - m (line 16) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/failed-doctest-test-crate.rs - m (line 14) stdout ----
|
||||
---- $DIR/failed-doctest-test-crate.rs - m (line 16) stdout ----
|
||||
error[E0432]: unresolved import `test`
|
||||
--> $DIR/failed-doctest-test-crate.rs:15:5
|
||||
--> $DIR/failed-doctest-test-crate.rs:17:5
|
||||
|
|
||||
LL | use test::*;
|
||||
| ^^^^ use of unresolved module or unlinked crate `test`
|
||||
@@ -19,7 +19,8 @@ For more information about this error, try `rustc --explain E0432`.
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/failed-doctest-test-crate.rs - m (line 14)
|
||||
$DIR/failed-doctest-test-crate.rs - m (line 16)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// <https://github.com/rust-lang/rust/pull/137899#discussion_r1976743383>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/relative-path-include-bytes-132203.rs - (line 18) ... FAILED
|
||||
test $DIR/relative-path-include-bytes-132203.rs - (line 20) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/relative-path-include-bytes-132203.rs - (line 18) stdout ----
|
||||
---- $DIR/relative-path-include-bytes-132203.rs - (line 20) stdout ----
|
||||
error: couldn't read `$DIR/relative-dir-empty-file`: $FILE_NOT_FOUND_MSG (os error 2)
|
||||
--> $DIR/relative-path-include-bytes-132203.rs:19:9
|
||||
--> $DIR/relative-path-include-bytes-132203.rs:21:9
|
||||
|
|
||||
LL | let x = include_bytes!("relative-dir-empty-file");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -16,7 +16,7 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/relative-path-include-bytes-132203.rs - (line 18)
|
||||
$DIR/relative-path-include-bytes-132203.rs - (line 20)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
@@ -4,3 +4,4 @@ test $DIR/auxiliary/relative-dir.md - (line 1) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
//@ normalize-stdout: "tests.rustdoc-ui.doctest." -> "$$DIR/"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "`: .* \(os error 2\)" -> "`: $$FILE_NOT_FOUND_MSG (os error 2)"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/132203
|
||||
// This version, because it's edition2024, passes thanks to the new
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "panicked at .+rs:" -> "panicked at $$TMP:"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
running 3 tests
|
||||
test $DIR/stdout-and-stderr.rs - (line 15) ... FAILED
|
||||
test $DIR/stdout-and-stderr.rs - (line 20) ... FAILED
|
||||
test $DIR/stdout-and-stderr.rs - (line 24) ... FAILED
|
||||
test $DIR/stdout-and-stderr.rs - (line 17) ... FAILED
|
||||
test $DIR/stdout-and-stderr.rs - (line 22) ... FAILED
|
||||
test $DIR/stdout-and-stderr.rs - (line 26) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/stdout-and-stderr.rs - (line 15) stdout ----
|
||||
---- $DIR/stdout-and-stderr.rs - (line 17) stdout ----
|
||||
Test executable failed (exit status: 101).
|
||||
|
||||
stdout:
|
||||
@@ -21,7 +21,7 @@ assertion `left == right` failed
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
---- $DIR/stdout-and-stderr.rs - (line 20) stdout ----
|
||||
---- $DIR/stdout-and-stderr.rs - (line 22) stdout ----
|
||||
Test executable failed (exit status: 101).
|
||||
|
||||
stderr:
|
||||
@@ -33,14 +33,15 @@ assertion `left == right` failed
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
---- $DIR/stdout-and-stderr.rs - (line 24) stdout ----
|
||||
---- $DIR/stdout-and-stderr.rs - (line 26) stdout ----
|
||||
Test executable failed (exit status: 1).
|
||||
|
||||
|
||||
failures:
|
||||
$DIR/stdout-and-stderr.rs - (line 15)
|
||||
$DIR/stdout-and-stderr.rs - (line 20)
|
||||
$DIR/stdout-and-stderr.rs - (line 24)
|
||||
$DIR/stdout-and-stderr.rs - (line 17)
|
||||
$DIR/stdout-and-stderr.rs - (line 22)
|
||||
$DIR/stdout-and-stderr.rs - (line 26)
|
||||
|
||||
test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
||||
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
|
||||
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/wrong-ast-2024.rs - three (line 18) - should panic ... ok
|
||||
test $DIR/wrong-ast-2024.rs - three (line 20) - should panic ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
|
||||
running 2 tests
|
||||
test $DIR/wrong-ast-2024.rs - one (line 8) ... FAILED
|
||||
test $DIR/wrong-ast-2024.rs - two (line 13) ... FAILED
|
||||
test $DIR/wrong-ast-2024.rs - one (line 10) ... FAILED
|
||||
test $DIR/wrong-ast-2024.rs - two (line 15) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- $DIR/wrong-ast-2024.rs - one (line 8) stdout ----
|
||||
---- $DIR/wrong-ast-2024.rs - one (line 10) stdout ----
|
||||
error[E0758]: unterminated block comment
|
||||
--> $DIR/wrong-ast-2024.rs:$LINE:$COL
|
||||
|
|
||||
@@ -22,7 +22,7 @@ error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0758`.
|
||||
Couldn't compile the test.
|
||||
---- $DIR/wrong-ast-2024.rs - two (line 13) stdout ----
|
||||
---- $DIR/wrong-ast-2024.rs - two (line 15) stdout ----
|
||||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/wrong-ast-2024.rs:$LINE:$COL
|
||||
|
|
||||
@@ -34,8 +34,9 @@ error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
$DIR/wrong-ast-2024.rs - one (line 8)
|
||||
$DIR/wrong-ast-2024.rs - two (line 13)
|
||||
$DIR/wrong-ast-2024.rs - one (line 10)
|
||||
$DIR/wrong-ast-2024.rs - two (line 15)
|
||||
|
||||
test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
||||
all doctests ran in $TIME; merged doctests compilation took $TIME
|
||||
|
||||
Reference in New Issue
Block a user