rust-clippy/clippy_lints/src/misc_early
Nicholas Nethercote f2d83ed1ac Use token::Lit in ast::ExprKind::Lit.
Instead of `ast::Lit`.

Literal lowering now happens at two different times. Expression literals
are lowered when HIR is crated. Attribute literals are lowered during
parsing.

This commit changes the language very slightly. Some programs that used
to not compile now will compile. This is because some invalid literals
that are removed by `cfg` or attribute macros will no longer trigger
errors. See this comment for more details:
https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773
2022-11-16 09:41:28 +11:00
..
builtin_type_shadow.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
double_neg.rs Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup 2021-11-04 12:52:36 +00:00
literal_suffix.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
mixed_case_hex_literals.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
mod.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
redundant_pattern.rs clippy: BindingAnnotation change 2022-09-02 13:03:11 -05:00
unneeded_field_pattern.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unneeded_wildcard_pattern.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
zero_prefixed_literal.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00