about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/non_local_def.rs
AgeCommit message (Expand)AuthorLines
2024-11-01Also treat `impl` definition parent as transparent regarding modulesUrgau-2/+8
2024-10-13Also use outermost const-anon for impl items in `non_local_defs` lintUrgau-3/+7
2024-10-11Consider outermost const-anon in non_local_def lintUrgau-31/+59
2024-09-23Remove with/without trait and bounds considerationUrgau-1/+0
2024-09-23Point to every relevant types in the main diagUrgau-55/+17
2024-09-23Rework `non_local_definitions` lint to only be a syntactic heuristicUrgau-215/+24
2024-09-23Revert "Switch back `non_local_definitions` lint to allow-by-default"Urgau-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-23/+19
2024-09-02chore: Fix typos in 'compiler' (batch 1)Alexander Cyon-1/+1
2024-08-27Add `warn(unreachable_pub)` to `rustc_lint`.Nicholas Nethercote-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-9/+8
2024-07-25Support ?Trait bounds in supertraits and dyn Trait under a feature gateBryanskiy-2/+2
2024-07-08Move trait selection error reporting to its own top-level moduleMichael Goulet-2/+2
2024-06-27Switch back `non_local_definitions` lint to allow-by-defaultUrgau-1/+1
2024-06-21Rename a bunch of thingsMichael Goulet-1/+1
2024-06-19Rollup merge of #126422 - Urgau:doctest-impl-non-local-def, r=fmease许杰友 Jieyou Xu (Joe)-38/+45
2024-06-15Also simplify macro_rules doctest codeUrgau-2/+1
2024-06-15Suggest standalone doctest for non-local impl defsUrgau-38/+46
2024-06-15Auto merge of #125722 - Urgau:non_local_defs-macro-to-change, r=estebankbors-0/+8
2024-06-03Fix up comments.Nicholas Nethercote-1/+1
2024-05-29non_local_defs: indicate that the macro needs to changeUrgau-0/+8
2024-05-29Don't require `visit_body` to take a lifetime that must outlive the function ...Oli Scherer-2/+2
2024-05-27non_local_defs: point the parent item when appropriateUrgau-5/+17
2024-05-27non_local_defs: point to Self and Trait to give more contextUrgau-7/+76
2024-05-27non_local_defs: suggest removing leading ref/ptr to make the impl localUrgau-29/+51
2024-05-27non_local_defs: be more precise about what needs to be movedUrgau-2/+38
2024-05-27non_local_defs: use labels to indicate what may need to be movedUrgau-0/+3
2024-05-27non_local_defs: use span of the impl def and not the impl blockUrgau-1/+1
2024-05-27non_local_defs: improve some notes around trait, bounds, constsUrgau-3/+6
2024-05-27non_local_defs: move out from `#[derive(LintDiagnostic)]` to manual implUrgau-1/+0
2024-05-26Give EarlyBinder a tcx parameterMichael Goulet-1/+1
2024-05-18Fix typos (taking into account review comments)blyxyas-1/+1
2024-05-10Use fewer origins when creating type variables.Nicholas Nethercote-2/+1
2024-05-02Rollup merge of #124568 - Urgau:non-local-defs-doctest, r=michaelwoerister,Gu...Guillaume Gomez-0/+9
2024-05-01Adjust `#[macro_export]`/doctest help suggestion for non_local_defs lintUrgau-0/+9
2024-05-01Auto merge of #124539 - Urgau:non-local-defs_modulo_modules, r=lcnrbors-5/+11
2024-04-29Consider inner modules to be local in the `non_local_definitions` lintUrgau-5/+11
2024-04-29Remove `extern crate rustc_session` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-04-21Auto merge of #123594 - Urgau:fix-non_local_def-lint-overflow, r=lcnrbors-1/+13
2024-04-15nitsMichael Goulet-8/+4
2024-04-09Fix trait solver overflow with `non_local_definitions` lintUrgau-1/+13
2024-04-08Thread pattern types through the HIROli Scherer-0/+1
2024-04-05Put non_local_definitions lint back to warn-by-defaultUrgau-1/+1
2024-04-05Eliminate false-positives in the non-local lint with the type-systemUrgau-37/+168
2024-03-07Use was_invoked_from_cargo method instead of hand-written oneUrgau-1/+1
2024-03-07Add early-return when checking if a path is localUrgau-2/+4
2024-03-07Remove useless smallvec dependency in rustc_lint::non_local_defUrgau-12/+18
2024-03-06Temporarily make allow-by-default the non_local_definitions lintUrgau-1/+2
2024-02-17Add cargo update suggestion for non local defsUrgau-2/+23
2024-02-17Add const-anon suggestion for non local implUrgau-1/+15