diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-05-24 16:05:42 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-07-23 07:09:14 +0000 |
| commit | 33ec4e4bb0e332072b5dbd31f8f024dff4e3f44e (patch) | |
| tree | 80448358741f8236781db361d1187ddb83c33e53 /compiler/rustc_lint/src | |
| parent | cec34a43b1b14f4e39363f3b283d7ac4f593ee81 (diff) | |
| download | rust-33ec4e4bb0e332072b5dbd31f8f024dff4e3f44e.tar.gz rust-33ec4e4bb0e332072b5dbd31f8f024dff4e3f44e.zip | |
make `noop_method_call` warn by default
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/noop_method_call.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/noop_method_call.rs b/compiler/rustc_lint/src/noop_method_call.rs index 13f650c2008..2817a665bb0 100644 --- a/compiler/rustc_lint/src/noop_method_call.rs +++ b/compiler/rustc_lint/src/noop_method_call.rs @@ -18,7 +18,6 @@ declare_lint! { /// /// ```rust /// # #![allow(unused)] - /// #![warn(noop_method_call)] /// struct Foo; /// let foo = &Foo; /// let clone: &Foo = foo.clone(); @@ -34,7 +33,7 @@ declare_lint! { /// calling `clone` on a `&T` where `T` does not implement clone, actually doesn't do anything /// as references are copy. This lint detects these calls and warns the user about them. pub NOOP_METHOD_CALL, - Allow, + Warn, "detects the use of well-known noop methods" } |
