Add "warn/allow by default" to lint descriptions where it was missing.
This commit is contained in:
parent
261bed1f8e
commit
06f30a61dd
10 changed files with 14 additions and 13 deletions
|
@ -4,7 +4,7 @@ use utils::span_lint;
|
|||
use rustc::middle::ty::{TypeAndMut, TypeVariants, MethodCall, TyS};
|
||||
use syntax::ptr::P;
|
||||
|
||||
/// **What it does:** This lint detects giving a mutable reference to a function that only requires an immutable reference.
|
||||
/// **What it does:** This lint detects giving a mutable reference to a function that only requires an immutable reference. It is `Warn` by default.
|
||||
///
|
||||
/// **Why is this bad?** The immutable reference rules out all other references to the value. Also the code misleads about the intent of the call site.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue