about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/enum_intrinsics_non_enums.rs
AgeCommit message (Collapse)AuthorLines
2025-03-15Fold visit into tyMichael Goulet-2/+1
2025-02-08Rustfmtbjorn3-4/+5
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-7/+6
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+8
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-29Remove `extern crate rustc_session` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-01-23Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.Nicholas Nethercote-6/+2
2023-07-14refactor(rustc_middle): Substs -> GenericArgMahdi Dibaiee-2/+2
2023-04-27rename `needs_subst` to `has_param`Boxy-1/+1
2023-02-22Remove type-traversal trait aliasesAlan Egerton-1/+1
2023-01-09refactor: cleanupRejyr-2/+0
2023-01-09migrate: `early.rs` and `enum_intrinsics_non_enums.rs`Rejyr-8/+11
2022-10-23Migrate all diagnosticsNilstrieb-4/+4
2022-10-01Refactor rustc lint APIMaybe Waffle-14/+12
2022-07-06Update TypeVisitor pathsAlan Egerton-1/+1
2022-06-30lint: port enum intrinsics diagnosticsDavid Wood-23/+7
Signed-off-by: David Wood <david.wood@huawei.com>
2022-01-15initial revertEllen-1/+1
2021-11-16Use get_diagnostic_name moreCameron Steffen-10/+8
2021-10-11Add enum_intrinsics_non_enums lintFlying-Toast-0/+106