about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lints.rs
AgeCommit message (Expand)AuthorLines
2024-06-23Add hard error and migration lint for unsafe attrscarbotaniuman-0/+21
2024-06-19Rollup merge of #126422 - Urgau:doctest-impl-non-local-def, r=fmease许杰友 Jieyou Xu (Joe)-8/+10
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-3/+3
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-2/+2
2024-06-17Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote许杰友 Jieyou Xu (Joe)-0/+2
2024-06-15Also simplify macro_rules doctest codeUrgau-8/+5
2024-06-15Suggest standalone doctest for non-local impl defsUrgau-0/+5
2024-06-15Auto merge of #125722 - Urgau:non_local_defs-macro-to-change, r=estebankbors-3/+11
2024-06-14Resolve elided lifetimes in assoc const to static if no other lifetimes are i...Michael Goulet-0/+2
2024-06-11Rollup merge of #125913 - fmease:early-lints-spruce-up-some-diags, r=Nadrieril许杰友 Jieyou Xu (Joe)-0/+4
2024-06-06Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obkbors-0/+7
2024-06-05Make MISSING_UNSAFE_ON_EXTERN lint emit future compat info with suggestion to...Santiago Pastorino-1/+4
2024-06-04Rollup merge of #125596 - nnethercote:rental-hard-error, r=estebankGuillaume Gomez-8/+0
2024-06-04Make extern blocks without unsafe warn in edition 2024Santiago Pastorino-0/+4
2024-06-03Spruce up the diagnostics of some early lintsLeón Orell Valerian Liehr-0/+4
2024-05-29non_local_defs: move cargo update suggestion upperUrgau-3/+3
2024-05-29non_local_defs: indicate that the macro needs to changeUrgau-0/+8
2024-05-29Change lint_dropping_copy_types to use UseLetUnderscoreIgnoreSuggestion as su...surechen-14/+1
2024-05-29 Let lint_forgetting_references give the suggestion if possiblesurechen-6/+11
2024-05-29 Let lint_forgetting_copy_types give the suggestion if possible.surechen-1/+2
2024-05-29Let lint_dropping_references give the suggestion if possible.surechen-1/+15
2024-05-29Auto merge of #125433 - surechen:fix_125189, r=Urgaubors-1/+15
2024-05-28Convert `proc_macro_back_compat` lint to an unconditional error.Nicholas Nethercote-8/+0
2024-05-27non_local_defs: point the parent item when appropriateUrgau-8/+8
2024-05-27non_local_defs: point to Self and Trait to give more contextUrgau-0/+8
2024-05-27non_local_defs: suggest removing leading ref/ptr to make the impl localUrgau-1/+13
2024-05-27non_local_defs: be more precise about what needs to be movedUrgau-7/+5
2024-05-27non_local_defs: improve exception note for impl and macro_rules!Urgau-1/+0
2024-05-27non_local_defs: use labels to indicate what may need to be movedUrgau-2/+13
2024-05-27non_local_defs: improve some notes around trait, bounds, constsUrgau-10/+20
2024-05-27non_local_defs: move out from `#[derive(LintDiagnostic)]` to manual implUrgau-16/+64
2024-05-27Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercotebors-44/+12
2024-05-24A small diagnostic improvement for dropping_copy_typessurechen-1/+15
2024-05-23Rollup merge of #125412 - Urgau:check-cfg-less-build-rs, r=wesleywiserGuillaume Gomez-12/+24
2024-05-23Rollup merge of #125210 - fmease:fix-up-some-diags, r=davidtwcoMatthias Krüger-1/+1
2024-05-23Rollup merge of #125156 - zachs18:for_loops_over_fallibles_behind_refs, r=Nil...Matthias Krüger-0/+1
2024-05-23Remove `LintDiagnostic::msg`León Orell Valerian Liehr-44/+12
2024-05-22Cleanup: Fix up some diagnosticsLeón Orell Valerian Liehr-1/+1
2024-05-22Don't suggest adding the unexpected cfgs the build-script it-selfUrgau-12/+24
2024-05-21Make early lints translatableXiretza-9/+592
2024-05-21Convert unexpected_cfg_{name,value} to struct diagnosticsXiretza-0/+251
2024-05-21Convert NAMED_ASM_LABELS lint to diag structXiretza-0/+6
2024-05-20Implement BOXED_SLICE_INTO_ITERMichael Goulet-5/+6
2024-05-15Include reference in lint diagnosticZachary S-0/+1
2024-05-01Adjust `#[macro_export]`/doctest help suggestion for non_local_defs lintUrgau-4/+8
2024-04-21Pass translation closure to add_to_diag_with() as referenceXiretza-9/+9
2024-03-29Add support for NonNull in ambiguous_wide_ptr_comparisionsUrgau-6/+12
2024-03-29Add detection of [Partial]Ord methods to the ambiguous wide ptr cmp lintUrgau-6/+8
2024-03-11Rename `DecorateLint` as `LintDiagnostic`.Nicholas Nethercote-11/+11
2024-03-11Rename `AddToDiagnostic` as `Subdiagnostic`.Nicholas Nethercote-21/+21