about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
2023-01-09migrate: `unused.rs`Rejyr-102/+69
2023-01-04Address commentsMichael Goulet-1/+1
2023-01-04Simplify some iterator combinatorsMichael Goulet-16/+11
2022-12-27Rollup merge of #105515 - estebank:issue-104141, r=oli-obkMatthias Krüger-0/+1
2022-12-18don't restuct references just to reborrowMatthias Krüger-1/+1
2022-12-14Ensure no one constructs `AliasTy`s themselvesOli Scherer-2/+2
2022-12-13Combine projection and opaque into aliasMichael Goulet-2/+2
2022-12-13squash OpaqueTy and ProjectionTy into AliasTyMichael Goulet-2/+2
2022-12-13Use ty::OpaqueTy everywhereMichael Goulet-2/+2
2022-12-10Auto merge of #105416 - nnethercote:more-linting-tweaks, r=cjgillotbors-0/+2
2022-12-10Rollup merge of #105505 - WaffleLapkin:yeet_unused_parens_lint, r=fee1-deadMatthias Krüger-1/+4
2022-12-09Account for macros in const genericsEsteban Küber-0/+1
2022-12-09Don't warn about unused parens when they are used by yeet exprMaybe Waffle-1/+4
2022-12-07Inline some hot lint pass functions.Nicholas Nethercote-0/+2
2022-12-06Rollup merge of #105004 - TaKO8Ki:fix-104897, r=wesleywiserMatthias Krüger-5/+26
2022-12-02return when expr has errorTakayuki Maeda-5/+26
2022-12-01rustc_ast_lowering: Stop lowering imports into multiple itemsVadim Petrochenkov-1/+1
2022-11-28Simplify checking for `GeneratorKind::Async`Arpad Borsos-4/+1
2022-11-25Introduce PredicateKind::ClauseSantiago Pastorino-2/+3
2022-11-24Rollup merge of #104796 - notriddle:notriddle/unused-issue-104397, r=oli-obkMatthias Krüger-0/+1
2022-11-24Avoid `GenFuture` shim when compiling async constructsArpad Borsos-1/+14
2022-11-23lint: do not warn unused parens around higher-ranked function pointersMichael Howell-0/+1
2022-11-22Rollup merge of #104359 - Nilstrieb:plus-one, r=fee1-deadManish Goregaokar-113/+203
2022-11-20Change to Ty::is_inhabited_fromCameron Steffen-2/+2
2022-11-19Refactor `must_use` lint into two partsNilstrieb-113/+203
2022-11-19Rollup merge of #104566 - matthiaskrgr:clippy_perf_nov18, r=oli-obkDylan DPC-2/+2
2022-11-18Auto merge of #101562 - nnethercote:shrink-ast-Expr-harder, r=petrochenkovbors-1/+1
2022-11-18couple of clippy::perf fixesMatthias Krüger-2/+2
2022-11-17Rollup merge of #104433 - TaKO8Ki:fix-104392, r=estebankMatthias Krüger-9/+7
2022-11-17Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, types, and ...Nicholas Nethercote-1/+1
2022-11-15return when expr has errorsTakayuki Maeda-0/+5
2022-11-15simplify `emit_unused_delims_expr`Takayuki Maeda-10/+3
2022-11-11Auto merge of #104293 - Manishearth:rollup-xj92d0k, r=Manishearthbors-13/+29
2022-11-10review commentsEsteban Küber-3/+10
2022-11-10Consider `#[must_use]` annotation on `async fn` as also affecting the `Future...Esteban Küber-1/+13
2022-11-10Tweak span for `#[must_use]`Esteban Küber-6/+3
2022-10-24fix parentheses surrounding spacing issue in parseryukang-4/+2
2022-10-24fix #103435, unused lint won't produce invalid codeyukang-13/+31
2022-10-23Migrate all diagnosticsNilstrieb-18/+18
2022-10-20Elaborate supertrait bounds when triggering unused_must_use on impl TraitMichael Goulet-2/+6
2022-10-01Refactor rustc lint APIMaybe Waffle-66/+82
2022-09-12Plumb dyn trait representation through ty::DynamicEric Holk-1/+1
2022-09-02Refactor and re-use BindingAnnotationCameron Steffen-2/+4
2022-08-31Fix a bunch of typoDezhi Wu-3/+3
2022-08-10Do not consider method call receiver as an argument in AST.Camille GILLOT-2/+1
2022-08-07Do not manually craft a span pointing inside a multibyte character.Camille GILLOT-46/+42
2022-08-04Enable unused_parens for match armswcampbell-0/+14
2022-06-30lint: port unused allocation diagnosticsDavid Wood-7/+5
2022-06-30lint: port unused import braces diagnosticsDavid Wood-1/+1
2022-06-30lint: port unused delimiter diagnosticsDavid Wood-5/+9