Skip to content

Commit

Permalink
Warn in doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev committed Mar 3, 2021
1 parent 1999a31 commit 25637b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/noop_method_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 25637b2

Please sign in to comment.