rust/compiler/rustc_hir
Matthias Krüger 85a9de5d51
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
2025-02-06 13:09:59 +01:00
..
src Rollup merge of #136393 - oli-obk:pattern-type-lit-oflo-checks, r=compiler-errors 2025-02-06 13:09:59 +01:00
Cargo.toml Add hir::Attribute 2024-12-15 19:18:46 +01:00