Skip to content

Commit 178f502

Browse files
committed
Stop lint from checking code expanded from macros.
1 parent 69f6009 commit 178f502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/almost_complete_letter_range.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ fn check_range(cx: &EarlyContext<'_>, span: Span, start: &Expr, end: &Expr, sugg
7979
(LitKind::Byte(b'a') | LitKind::Char('a'), LitKind::Byte(b'z') | LitKind::Char('z'))
8080
| (LitKind::Byte(b'A') | LitKind::Char('A'), LitKind::Byte(b'Z') | LitKind::Char('Z'))
8181
)
82+
&& !span.from_expansion()
8283
{
8384
span_lint_and_then(
8485
cx,

0 commit comments

Comments
 (0)