1
Fork 0

Add "warn/allow by default" to lint descriptions where it was missing.

This commit is contained in:
Johannes Linke 2016-01-01 17:48:19 +01:00
parent 261bed1f8e
commit 06f30a61dd
10 changed files with 14 additions and 13 deletions

View file

@ -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.
///