about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/pat_util.rs
AgeCommit message (Collapse)AuthorLines
2025-01-29Eliminate PatKind::PathOli Scherer-1/+4
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
`rustc_span::symbol` defines some things that are re-exported from `rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some closely related things such as `Ident` and `kw`. So you can do `use rustc_span::{Symbol, sym}` but you have to do `use rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good reason. This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`, and changes many `rustc_span::symbol::` qualifiers in `compiler/` to `rustc_span::`. This is a 200+ net line of code reduction, mostly because many files with two `use rustc_span` items can be reduced to one.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+5
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-17Rename `BindingAnnotation` to `BindingMode`Jules Bertholet-9/+6
2024-02-21Fix liveness analysis in the presence of never patternsNadrieril-2/+9
2023-12-18Replace some instances of FxHashMap/FxHashSet with stable alternatives ↵Michael Woerister-4/+3
(mostly in rustc_hir and rustc_ast_lowering) Part of https://github.com/rust-lang/compiler-team/issues/533
2023-04-03Perform match checking on THIR.Camille GILLOT-11/+0
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+1
2022-11-23`random::<Improve<Mutability>>()`Maybe Waffle-4/+1
2022-09-08Introduce `DotDotPos`.Nicholas Nethercote-3/+3
This shrinks `hir::Pat` from 88 to 72 bytes.
2022-09-02Refactor and re-use BindingAnnotationCameron Steffen-9/+4
2022-07-20Remove unused StableMap and StableSet types from rustc_data_structuresMichael Woerister-1/+1
2021-11-21Simplify for loop desugarCameron Steffen-0/+11
2021-04-03Auto merge of #83599 - jyn514:unorderable, r=Aaron1011bors-2/+5
Avoid sorting by DefId for `necessary_variants()` Follow-up to https://github.com/rust-lang/rust/pull/83074. Originally I tried removing `impl Ord for DefId` but that hit *lots* of errors :sweat_smile: so I thought I would start with easy things. I am not sure whether this could actually cause invalid query results, but this is used from `MarkSymbolVisitor::visit_arm` so it's at least feasible. r? `@Aaron1011`
2021-03-28Avoid sorting by DefId for `necessary_variants()`Joshua Nelson-2/+5
2021-03-27Remove (lots of) dead codeJoshua Nelson-20/+0
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
2020-10-30Fix even more clippy warningsJoshua Nelson-4/+1
2020-10-14Remove unused code from rustc_hirest31-28/+0
2020-08-30mv compiler to compiler/mark-0/+194