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:
Joshua Nelson 2021-11-26 13:52:28 -05:00
parent 454cc5fb86
commit 7e4bf4bfc6
8 changed files with 68 additions and 74 deletions

View file

@ -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() {}