about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/lint.rs
AgeCommit message (Expand)AuthorLines
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-08-31Rewrite lint_expectations in a single pass.Camille GILLOT-1/+2
2024-08-08Only suggest `#[allow]` for `--warn` and `--deny` lint level flagsAlex Macleod-3/+5
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+2
2024-05-27Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercotebors-8/+2
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_middle`.Nicholas Nethercote-0/+1
2024-05-23Remove `LintDiagnostic::msg`León Orell Valerian Liehr-8/+2
2024-04-29Remove `extern crate rustc_macros` from `rustc_middle`.Nicholas Nethercote-0/+1
2024-03-17Guard decorate on when not to skip instead许杰友 Jieyou Xu (Joe)-7/+4
2024-03-17Invoke decorate when error level is beyond warning, including error许杰友 Jieyou Xu (Joe)-7/+16
2024-03-17Only invoke `decorate` if the diag can eventually be emitted许杰友 Jieyou Xu (Joe)-2/+10
2024-03-05Rename `DiagnosticMessage` as `DiagMessage`.Nicholas Nethercote-3/+3
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-8/+7
2024-02-19Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.Nicholas Nethercote-4/+4
2024-02-13Do not point at `#[allow(_)]` as the reason for compat lint triggeringEsteban Küber-0/+5
2024-01-23Rename `struct_lint_level` as `lint_level`.Nicholas Nethercote-3/+3
2024-01-23Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.Nicholas Nethercote-1/+1
2024-01-23Rename `TyCtxt::emit_lint` as `TyCtxt::emit_node_lint`.Nicholas Nethercote-1/+1
2024-01-23Rename `TyCtxt::struct_span_lint_hir` as `TyCtxt::node_span_lint`.Nicholas Nethercote-1/+1
2024-01-23Rename `TyCtxt::struct_lint_node` as `TyCtxt::node_lint`.Nicholas Nethercote-1/+1
2024-01-23Rename `LintContext::lookup` as `LintContext::opt_span_lint`.Nicholas Nethercote-1/+1
2024-01-14Rework how diagnostic lints are stored.Nicholas Nethercote-5/+2
2024-01-11Change how `force-warn` lint diagnostics are recorded.Nicholas Nethercote-8/+6
2024-01-08Use chaining for `DiagnosticBuilder` construction and `emit`.Nicholas Nethercote-1/+0
2024-01-04Remove `is_lint` field from `Level::Error`.Nicholas Nethercote-1/+1
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-3/+3
2023-12-31rustc_lint: Make `LintLevelsProvider::current_specs()` return `&FxIndexMap`Martin Nordholts-2/+2
2023-12-23Streamline `struct_lint_level`.Nicholas Nethercote-23/+13
2023-12-18Rename `Session::span_diagnostic` as `Session::dcx`.Nicholas Nethercote-2/+2
2023-12-18Rename `HandlerInner` as `DiagCtxtInner`.Nicholas Nethercote-1/+1
2023-12-15Fix commentsMichael Goulet-22/+3
2023-12-15Don't pass lint back out of lint decoratorMichael Goulet-9/+2
2023-11-04Remove support for compiler plugins.Nicholas Nethercote-2/+1
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-3/+2
2023-09-22give FutureIncompatibilityReason variants more explicit namesRalf Jung-3/+6
2023-09-04Add help to allow lint for the implied by suggestionUrgau-0/+3
2023-08-02fix RedundantLocals clippy caused by async and awaityukang-0/+9
2023-08-02Fix #107113, avoid suggest for macro attributesyukang-1/+5
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-9/+5
2023-07-18Add `#[track_caller]` to lint related diagnostic functionsMaybe Waffle-0/+2
2023-07-12Move `maybe_lint_level_root_bounded`.Nicholas Nethercote-20/+0
2023-06-27Simplify some conditionsMaybe Waffle-3/+4
2023-05-29Use `Cow` in `{D,Subd}iagnosticMessage`.Nicholas Nethercote-1/+1
2023-05-25Remove ExpnKind::Inlined.Camille GILLOT-2/+1
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-6/+6
2023-01-10create helper function for `rustc_lint_defs::Level` and remove it's duplicate...ozkanonur-10/+1
2023-01-04rename get_parent_node to parent_idMichael Goulet-1/+1
2022-11-06fix: typoRejyr-1/+1
2022-10-16fix typoRalf Jung-1/+1
2022-10-12Apply suggestions from code reviewWaffle Maybe-9/+4