about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/passes.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-02-01 10:06:35 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-02-05 11:28:24 +0000
commit9a2073d50059708d9150204348bbea087cd5f9c8 (patch)
tree15daee38fa554f421f7bd08487f4921ecdb95213 /compiler/rustc_lint/src/passes.rs
parent9f5473f7ad7b0bc9a100d82a39142f714a2b48f7 (diff)
downloadrust-9a2073d50059708d9150204348bbea087cd5f9c8.tar.gz
rust-9a2073d50059708d9150204348bbea087cd5f9c8.zip
Uniformly handle HIR literals in visitors and lints
Diffstat (limited to 'compiler/rustc_lint/src/passes.rs')
-rw-r--r--compiler/rustc_lint/src/passes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/passes.rs b/compiler/rustc_lint/src/passes.rs
index 8cc8f911d3a..77bd13aacf7 100644
--- a/compiler/rustc_lint/src/passes.rs
+++ b/compiler/rustc_lint/src/passes.rs
@@ -23,6 +23,7 @@ macro_rules! late_lint_methods {
             fn check_stmt(a: &'tcx rustc_hir::Stmt<'tcx>);
             fn check_arm(a: &'tcx rustc_hir::Arm<'tcx>);
             fn check_pat(a: &'tcx rustc_hir::Pat<'tcx>);
+            fn check_lit(hir_id: rustc_hir::HirId, a: &'tcx rustc_hir::Lit, negated: bool);
             fn check_expr(a: &'tcx rustc_hir::Expr<'tcx>);
             fn check_expr_post(a: &'tcx rustc_hir::Expr<'tcx>);
             fn check_ty(a: &'tcx rustc_hir::Ty<'tcx, rustc_hir::AmbigArg>);