about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context
AgeCommit message (Expand)AuthorLines
2024-07-01Improve well known value check-cfg diagnostic for the standard libraryUrgau-6/+12
2024-06-24resolve: Implement a lint for out-of-scope use of `macro_rules`Vadim Petrochenkov-0/+3
2024-06-23Add hard error and migration lint for unsafe attrscarbotaniuman-0/+10
2024-06-14Resolve elided lifetimes in assoc const to static if no other lifetimes are i...Michael Goulet-3/+12
2024-06-11Rollup merge of #125913 - fmease:early-lints-spruce-up-some-diags, r=Nadrieril许杰友 Jieyou Xu (Joe)-2/+3
2024-06-06Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obkbors-0/+3
2024-06-05Make MISSING_UNSAFE_ON_EXTERN lint emit future compat info with suggestion to...Santiago Pastorino-2/+2
2024-06-04Make extern blocks without unsafe warn in edition 2024Santiago Pastorino-0/+3
2024-06-03Spruce up the diagnostics of some early lintsLeón Orell Valerian Liehr-2/+3
2024-05-28Convert `proc_macro_back_compat` lint to an unconditional error.Nicholas Nethercote-3/+0
2024-05-27Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercotebors-230/+153
2024-05-24Auto merge of #125463 - GuillaumeGomez:rollup-287wx4y, r=GuillaumeGomezbors-12/+18
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-05-23Delay the construction of early lint diag structsLeón Orell Valerian Liehr-230/+153
2024-05-22Don't suggest adding the unexpected cfgs the build-script it-selfUrgau-12/+18
2024-05-21Make early lints translatableXiretza-447/+336
2024-05-21Convert uses of BuiltinLintDiag::Normal to custom variantsXiretza-12/+125
2024-05-21Port DeprecatedMacro to diag structsXiretza-4/+21
2024-05-21Generate lint diagnostic message from BuiltinLintDiagXiretza-14/+136
2024-05-21Convert unexpected_cfg_{name,value} to struct diagnosticsXiretza-152/+151
2024-05-21Convert NAMED_ASM_LABELS lint to diag structXiretza-4/+0
2024-05-20Fix quote escaping inside check-cfg valueUrgau-3/+2
2024-05-19Refer to the Cargo specific doc in the check-cfg diagnosticsUrgau-2/+4
2024-05-19Prefer suggesting string-literal for Cargo `check-cfg` lint configUrgau-18/+29
2024-05-16Update `unexpected_cfgs` lint for Cargo new `check-cfg` configUrgau-6/+8
2024-05-15Add `on_unimplemented" typo suggestionsmejrs-0/+8
2024-05-04Update Cargo diagnostics in check-cfgUrgau-4/+4
2024-04-29Remove `extern crate rustc_middle` from numerous crates.Nicholas Nethercote-0/+1
2024-04-21Move "elided lifetime in path" to subdiagnostic structXiretza-8/+10
2024-04-15Move --check-cfg documentation to stable booksUrgau-2/+2
2024-04-11Rollup merge of #122954 - fmease:defined-by-extern-prelude, r=petrochenkovLeón Orell Valerian Liehr-1/+1
2024-04-09Add a helper for extending a span to include any trailing whitespaceMichael Goulet-4/+1
2024-04-08Be more specific when flagging imports that are redundant due to the extern p...León Orell Valerian Liehr-1/+1
2024-03-16Move check-cfg diagnostic logic into it's own moduleUrgau-274/+282
2024-03-06Fix redundant import errors for preload extern crateyukang-1/+5
2024-03-05Limit the number of names and values in check-cfg diagnosticsUrgau-20/+51
2024-03-05Rename `BuiltinLintDiagnostics` as `BuiltinLintDiag`.Nicholas Nethercote-47/+38
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-7/+5
2024-03-01Rollup merge of #121580 - Suyashtnt:issue-121502-fix, r=michaelwoeristerMatthias Krüger-1/+1
2024-02-29Detect empty leading where-clauses on type aliasesLeón Orell Valerian Liehr-9/+16
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-85/+85
2024-02-25make unused_imports less assertive in test modulesSuyashtnt-1/+1
2024-02-20Reduce capabilities of `Diagnostic`.Nicholas Nethercote-0/+3
2024-02-17Use better heuristic for printing Cargo specific diagnosticsUrgau-2/+2
2024-02-06Rollup merge of #120435 - chenyukang:yukang-fix-120427-cfg-name, r=Urgau,Nils...Matthias Krüger-10/+40
2024-01-30add missing potential_query_instability for keys and values in hashmapyukang-0/+1
2024-01-30limit the names_possiblilities to less than 3Yukang-1/+1
2024-01-28Suggest name value cfg when only value is used for check-cfgyukang-10/+40
2024-01-13Add way to express no-values with check-cfgUrgau-0/+11
2024-01-12Exclude well known names from showing a suggestion in check-cfgUrgau-2/+10