about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-06 13:09:59 +0100
committerGitHub <noreply@github.com>2025-02-06 13:09:59 +0100
commit85a9de5d51ae859c10a285857a7fb716c7ca4958 (patch)
tree4c3f4cf8e175291df2297c59207e23be1cacf0f4 /compiler/rustc_const_eval/src
parentc2c4d5ebfbf5ec9e028d50e5dbf363eb8ce47778 (diff)
parent9a2073d50059708d9150204348bbea087cd5f9c8 (diff)
downloadrust-85a9de5d51ae859c10a285857a7fb716c7ca4958.tar.gz
rust-85a9de5d51ae859c10a285857a7fb716c7ca4958.zip
Rollup merge of #136393 - oli-obk:pattern-type-lit-oflo-checks, r=compiler-errors
Fix accidentally not emitting overflowing literals lints anymore in patterns

This was regressed in https://github.com/rust-lang/rust/pull/134228 (not in beta yet).

The issue was that previously we nested `hir::Expr` inside `hir::PatKind::Lit`, so it was linted by the expression code.

So now I've set it up for visitors to be able to directly visit literals and get all literals
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions