Merge commit '7bfc26ec8e
' into clippyup
This commit is contained in:
parent
652b6a771f
commit
1ad5464200
77 changed files with 1314 additions and 378 deletions
|
@ -168,7 +168,7 @@ pub fn snippet<'a, T: LintContext>(cx: &T, span: Span, default: &'a str) -> Cow<
|
|||
snippet_opt(cx, span).map_or_else(|| Cow::Borrowed(default), From::from)
|
||||
}
|
||||
|
||||
/// Same as `snippet`, but it adapts the applicability level by following rules:
|
||||
/// Same as [`snippet`], but it adapts the applicability level by following rules:
|
||||
///
|
||||
/// - Applicability level `Unspecified` will never be changed.
|
||||
/// - If the span is inside a macro, change the applicability level to `MaybeIncorrect`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue