Remove --display-doctest-warnings
This can be replicated in full with other existing features, there's no need to have a separate option for it. This also fixes a bug where `--test-args=--show-output` had no effect, and updates the documentation.
This commit is contained in:
parent
454cc5fb86
commit
7e4bf4bfc6
8 changed files with 68 additions and 74 deletions
|
@ -1,9 +1,15 @@
|
|||
// Test that `--show-output` has an effect and `allow(unused)` can be overriden.
|
||||
|
||||
// check-pass
|
||||
// compile-flags:-Zunstable-options --display-doctest-warnings --test
|
||||
// edition:2018
|
||||
// compile-flags:--test --test-args=--show-output
|
||||
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
|
||||
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// #![warn(unused)]
|
||||
/// let x = 12;
|
||||
///
|
||||
/// fn foo(x: &std::fmt::Display) {}
|
||||
/// ```
|
||||
pub fn foo() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue