mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Stop lint from checking code expanded from macros.
This commit is contained in:
parent
69f6009f85
commit
178f502970
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ fn check_range(cx: &EarlyContext<'_>, span: Span, start: &Expr, end: &Expr, sugg
|
|||
(LitKind::Byte(b'a') | LitKind::Char('a'), LitKind::Byte(b'z') | LitKind::Char('z'))
|
||||
| (LitKind::Byte(b'A') | LitKind::Char('A'), LitKind::Byte(b'Z') | LitKind::Char('Z'))
|
||||
)
|
||||
&& !span.from_expansion()
|
||||
{
|
||||
span_lint_and_then(
|
||||
cx,
|
||||
|
|
Loading…
Reference in a new issue