Repository navigation
Move more rustdoc-html tests using --test into the right folder
#162014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
41258df
614d9ea
5ba810f
09db866
2de1645
c7a87d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/async-move-doctest.rs - (line 10) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/comment-in-doctest.rs - (line 12) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/demo-allocator-54478.rs - (line 25) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/doc-cfg-target-feature.rs - foo (line 15) ... FAILED | ||
|
|
||
| failures: | ||
|
|
||
| ---- $DIR/doc-cfg-target-feature.rs - foo (line 15) stdout ---- | ||
| warning: the feature `cfg_target_feature` has been stable since 1.27.0 and no longer requires an attribute to enable | ||
| --> $DIR/doc-cfg-target-feature.rs:15:12 | ||
| | | ||
| LL | #![feature(cfg_target_feature)] | ||
| | ^^^^^^^^^^^^^^^^^^ | ||
| | | ||
| = note: `#[warn(stable_features)]` on by default | ||
|
|
||
| warning: 1 warning emitted | ||
|
|
||
| Test executable failed (exit status: 101). | ||
|
|
||
| stderr: | ||
|
|
||
| thread 'main' ($TID) panicked at $DIR/doc-cfg-target-feature.rs:7:1: | ||
| assertion failed: false | ||
| stack backtrace: | ||
| 0: __rustc::rust_begin_unwind | ||
| 1: core::panicking::panic_fmt | ||
| 2: core::panicking::panic | ||
| 3: rust_out::main::$PATH | ||
| 4: rust_out::main | ||
| 5: <fn() as core::ops::function::FnOnce<()>>::call_once | ||
| note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | ||
|
|
||
|
|
||
|
|
||
| failures: | ||
| $DIR/doc-cfg-target-feature.rs - foo (line 15) | ||
|
|
||
| test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/doc-test-attr-18199.rs - foo (line 9) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
|
|
||
| running 2 tests | ||
| test $DIR/edition-doctest.rs - foo (line 24) - compile fail ... ok | ||
| test $DIR/edition-doctest.rs - foo (line 5) ... ok | ||
|
|
||
| test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/edition-flag.rs - main (line 6) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/force-target-feature.rs - SomeStruct (line 11) ... FAILED | ||
|
|
||
| failures: | ||
|
|
||
| ---- $DIR/force-target-feature.rs - SomeStruct (line 11) stdout ---- | ||
| Test executable failed (exit status: 101). | ||
|
|
||
| stderr: | ||
|
|
||
| thread 'main' ($TID) panicked at $DIR/force-target-feature.rs:3:1: | ||
| oh no | ||
| stack backtrace: | ||
| 0: std::panicking::begin_panic::<&str> | ||
| 1: rust_out::main::$PATH | ||
| 2: rust_out::main | ||
| 3: <fn() as core::ops::function::FnOnce<()>>::call_once | ||
| note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | ||
|
|
||
|
|
||
|
|
||
| failures: | ||
| $DIR/force-target-feature.rs - SomeStruct (line 11) | ||
|
|
||
| test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
|
|
||
| running 0 tests | ||
|
|
||
| test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/no-run-still-checks-lints.rs - foo (line 7) - compile ... FAILED | ||
|
|
||
| failures: | ||
|
|
||
| ---- $DIR/no-run-still-checks-lints.rs - foo (line 7) stdout ---- | ||
| error: unused variable: `a` | ||
| --> $DIR/no-run-still-checks-lints.rs:8:5 | ||
| | | ||
| LL | let a = 3; | ||
| | ^ help: if this is intentional, prefix it with an underscore: `_a` | ||
| | | ||
| note: the lint level is defined here | ||
| --> $DIR/no-run-still-checks-lints.rs:6:9 | ||
| | | ||
| LL | #![deny(warnings)] | ||
| | ^^^^^^^^ | ||
| = note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| Couldn't compile the test. | ||
|
|
||
| failures: | ||
| $DIR/no-run-still-checks-lints.rs - foo (line 7) | ||
|
|
||
| test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
|
|
||
| running 3 tests | ||
| test $DIR/process-termination.rs - check_process_termination (line 16) ... ok | ||
| test $DIR/process-termination.rs - check_process_termination (line 22) ... ok | ||
| test $DIR/process-termination.rs - check_process_termination (line 9) ... ok | ||
|
|
||
| test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/sanitizer-option.rs - z_flag_is_passed_to_rustc (line 11) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
|
|
||
| running 3 tests | ||
| test $DIR/test-option-check-2.rs - Bar (line 18) ... ok | ||
| test $DIR/test-option-check-2.rs - Foo (line 11) ... ok | ||
| test $DIR/test-option-check.rs - bar::foooo (line 8) ... ok | ||
|
|
||
| test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| running 1 test | ||
| test $DIR/test-option-check.rs - foooo (line 8) ... ok | ||
|
|
||
| test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| //@ check-pass | ||
| // compile-args: --cap-lints=warn -Fwarnings | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait, this should be converted to Or did that lead to a failure? If so we might want to open a GH issue & investigate further.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This has not been addressed yet.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was confused because the test was expecting |
||
|
|
||
| // This checks that the forbid attribute checking is ignored when the forbidden | ||
| // lint is capped. | ||
|
|
||
| //@ check-pass | ||
| //@ compile-flags: --cap-lints=warn -Fwarnings | ||
|
|
||
| #![forbid(warnings)] | ||
| #![allow(unused)] | ||
| //~^ WARN allow(unused) incompatible with previous forbid | ||
| //~| WARN previously accepted | ||
|
|
||
| #[allow(unused)] | ||
| mod bar { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental removal while trying to apply #162014 (comment) (there's still the corresp.
*.stderrfile)?.View changes since the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has not been addressed yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arf indeed, fixed.