about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
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
2024-05-11Document the situation with unused_parens lint and braced macro callsDavid Tolnay-4/+28
2024-05-11Macro call with braces does not require semicolon to be statementDavid Tolnay-1/+4
2024-05-11Mark expr_requires_semi_to_be_stmt call sitesDavid Tolnay-1/+1
2024-05-08Rollup merge of #123344 - pietroalbini:pa-unused-imports, r=NilstriebMatthias Krüger-2/+2
2024-04-30Rollup merge of #124511 - nnethercote:rm-extern-crates, r=fee1-deadMatthias Krüger-0/+1
2024-04-29Remove `extern crate rustc_session` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-04-28Fix #124478 - offset_of! returns a temporaryGeorge Bateman-0/+1
2024-04-17Rename `BindingAnnotation` to `BindingMode`Jules Bertholet-2/+2
2024-04-15Parsing , pre-lowering support for precise capturesMichael Goulet-1/+1
2024-04-14store the span of the nested part of the use tree in the astPietro Albini-2/+2
2024-04-10skip `unused_parens`'s suggestion for `Paren` in macro.surechen-9/+15
2024-03-26Don't check match scrutinee of postfix match for unused parensMichael Goulet-1/+3
2024-03-22Rollup merge of #121619 - RossSmyth:pfix_match, r=petrochenkovMatthias Krüger-2/+2
2024-03-21Implement macro-based deref!() syntax for deref patternsMichael Goulet-1/+1
2024-03-20Split item bounds and item super predicatesMichael Goulet-1/+3