diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-02-17 10:06:23 +0100 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-03-03 11:23:33 +0100 |
| commit | 25637b228d68e9bdf2d3ce1ba421cbd115fcb81e (patch) | |
| tree | 11be9a9e5dec3b64f83689459049b648735206ce | |
| parent | 1999a3147f5ab65cd556d45e631be5c18fbaebf4 (diff) | |
| download | rust-25637b228d68e9bdf2d3ce1ba421cbd115fcb81e.tar.gz rust-25637b228d68e9bdf2d3ce1ba421cbd115fcb81e.zip | |
Warn in doc test
| -rw-r--r-- | compiler/rustc_lint/src/noop_method_call.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/noop_method_call.rs b/compiler/rustc_lint/src/noop_method_call.rs index 3a1b9c85fd1..479cc00199f 100644 --- a/compiler/rustc_lint/src/noop_method_call.rs +++ b/compiler/rustc_lint/src/noop_method_call.rs @@ -15,7 +15,7 @@ declare_lint! { /// /// ```rust /// # #![allow(unused)] - /// #![deny(noop_method_call)] + /// #![warn(noop_method_call)] /// struct Foo; /// let foo = &Foo; /// let clone: &Foo = foo.clone(); |
