about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
2025-09-18Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmannStuart Cook-1/+1
2025-09-17Remove `DynKind`León Orell Valerian Liehr-1/+1
2025-09-16Keep space if expr follows identifier when lint unused parensMu001999-0/+8
2025-07-31remove rustc_attr_data_structuresJana Dönszelmann-2/+2
2025-07-29Create two methods to fix `find_oldest_ancestor_in_same_ctxt`xizheyin-2/+2
2025-07-28Auto merge of #144469 - Kivooeo:chains-cleanup, r=SparrowLiibors-28/+25
2025-07-28use let chains in hir, lint, mirKivooeo-28/+25
2025-07-24Replace unwrap_or with explicit matchBen Schulz-3/+6
2025-07-24Fix unused_parens false positiveBen Schulz-1/+6
2025-07-10Remove uncessary parens in closure body with unused lintyukang-1/+9
2025-07-06compiler: rename {ast,hir}::BareFn* to FnPtr*Jubilee Young-1/+1
2025-07-02Rollup merge of #142237 - benschulz:unused-parens-fn, r=fee1-deadMatthias Krüger-10/+118
2025-07-01Detect more cases of unused_parens around typesBenjamin Schulz-10/+118
2025-06-25Fix suggestion spans inside macros for the `unused_must_use` lintUrgau-4/+6
2025-06-22Port `#[must_use]` to new attribute parsing infrastructureJonathan Brouwer-3/+6
2025-05-25Fix `unused_braces` lint suggestion when encountering attributesUrgau-16/+19
2025-04-30stop check paren if has different ctxbohan-0/+16
2025-03-28Add `{ast,hir,thir}::PatKind::Missing` variants.Nicholas Nethercote-1/+2
2025-02-15Remove unnecessary check code in unused_delimsyukang-24/+0
2025-02-08Rustfmtbjorn3-44/+54
2025-01-28Make item self/non-self bound naming less whackMichael Goulet-19/+16
2025-01-08Rename PatKind::Lit to ExprOli Scherer-1/+1
2024-12-23Use `#[derive(Default)]` instead of manually implementing itEsteban Küber-6/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-08Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-deadMatthias Krüger-1/+1
2024-11-28Replace `Symbol::intern` calls with preinterned symbolsclubby789-1/+1
2024-11-25Refactor `where` predicates, and reserve for attributes supportFrank King-3/+3
2024-11-24add guard pattern AST nodeMax Niederman-1/+1
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-2/+2
2024-11-14Adding `BreakValue` to UnusedDelimsCtx to make `UnusedParens` and `UnusedBrac...surechen-1/+8
2024-11-12For expr `return (_ = 42);` unused_paren lint should not be triggeredsurechen-0/+2
2024-10-29Remove region from adjustmentsMichael Goulet-1/+1
2024-10-26Auto merge of #125116 - blyxyas:ignore-allowed-lints-final, r=cjgillotbors-2/+2
2024-10-19Get rid of const eval_* and try_eval_* helpersMichael Goulet-1/+1
2024-10-19Follow review comments (optimize the filtering)blyxyas-1/+1
2024-10-19Do not run lints that cannot emitblyxyas-2/+2
2024-10-12Make unused_parens's suggestion considering expr's attributessurechen-1/+9
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-58/+48
2024-09-06Make `Ty::boxed_ty` return an `Option`Pavel Grigorenko-3/+2
2024-09-02chore: Fix typos in 'compiler' (batch 1)Alexander Cyon-1/+1
2024-08-27Add `warn(unreachable_pub)` to `rustc_lint`.Nicholas Nethercote-2/+2
2024-08-11Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errorsMatthias Krüger-6/+4
2024-08-07unused_parens: do not lint against parens around &rawRalf Jung-0/+7
2024-08-07Use more slice patterns inside the compilerLeón Orell Valerian Liehr-6/+4
2024-07-29Reformat `use` declarations.Nicholas Nethercote-15/+15
2024-07-07iter_identity is a better nameMichael Goulet-3/+1
2024-06-17Rework precise capturing syntaxMichael Goulet-1/+1
2024-06-14Use is_lang_item more aggressivelyMichael Goulet-2/+2
2024-06-03Fix up comments.Nicholas Nethercote-3/+6
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_lint`.Nicholas Nethercote-0/+1