rust/compiler/rustc_hir/src
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
..
hir Bless and add tests 2025-01-23 06:01:36 +00:00
arena.rs Add hir::Attribute 2024-12-15 19:18:46 +01:00
def_path_hash_map.rs Do not store stable crate id in on-disk hash map. 2023-12-24 17:22:48 +00:00
def.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
definitions.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
diagnostic_items.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hir_id.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hir.rs Rollup merge of #128045 - pnkfelix:rustc-contracts, r=oli-obk 2025-02-05 05:03:01 +01:00
intravisit.rs Uniformly handle HIR literals in visitors and lints 2025-02-05 11:28:24 +00:00
lang_items.rs Rollup merge of #128045 - pnkfelix:rustc-contracts, r=oli-obk 2025-02-05 05:03:01 +01:00
lib.rs rustc_hir: replace debug_fn with unstable fmt::from_fn 2025-01-24 14:45:55 +00:00
pat_util.rs Eliminate PatKind::Path 2025-01-29 15:45:13 +00:00
stable_hash_impls.rs Add hir::Attribute 2024-12-15 19:18:46 +01:00
target.rs turn hir::ItemKind::Fn into a named-field variant 2025-01-04 11:35:31 +01:00
tests.rs update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
weak_lang_items.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00