about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
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
2024-03-14Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`Guillaume Gomez-2/+2
2024-03-06Add MatchKind member to the Match expr for pretty printing & fmtRoss Smyth-2/+2
2024-03-05Use `ControlFlow` in AST visitors.Jason Newcomb-10/+8
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-1/+1
2024-02-14Fix false positive with if let and rangesyukang-4/+12
2024-02-06Add CoroutineClosure to TyKind, AggregateKind, UpvarArgsMichael Goulet-1/+1
2024-01-23Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.Nicholas Nethercote-11/+11
2024-01-17Add `PatKind::Err`Lieselotte-1/+1
2024-01-12Auto merge of #117321 - chenyukang:yukang-fix-117142, r=petrochenkovbors-12/+22
2023-12-19Plumb awaitness of for loopsEric Holk-3/+3
2023-12-08Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errorsbors-9/+11
2023-12-03Parse a pattern with no armNadrieril-9/+11
2023-11-30Enforce must_use on associated types and RPITITsMichael Goulet-1/+1
2023-11-29Rollup merge of #118157 - Nadrieril:never_pat-feature-gate, r=compiler-errorsMatthias Krüger-1/+1
2023-11-29Add `never_patterns` feature gateNadrieril-1/+1
2023-11-28Fix unused_parens when cast is followed LTyukang-12/+22
2023-11-28Rename `BinOpKind::lazy` as `BinOpKind::is_lazy`.Nicholas Nethercote-2/+2
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-8/+8
2023-11-18catch pinned `must_use` types in `unused_must_use`Max Niederman-0/+18
2023-10-30Fix missing leading space in suggestionGurinder Singh-1/+1
2023-10-20s/generator/coroutine/Oli Scherer-2/+2
2023-10-20s/Generator/Coroutine/Oli Scherer-7/+7
2023-10-15Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstriebbors-36/+44
2023-10-13Remove some unnecessary `unwrap`sEsteban Küber-1/+1
2023-10-13Format all the let chains in compilerMichael Goulet-36/+44
2023-09-11Move let expression checking to parsingMatthew Jasper-7/+5
2023-08-31Use terminology more sensiblyMichael Howell-1/+1
2023-08-31diagnostics: avoid wrong `unused_parens` on `x as (T) < y`Michael Howell-1/+28
2023-08-14match scrutinee need necessary parentheses for structsyukang-0/+18