about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
2022-11-18Auto merge of #101562 - nnethercote:shrink-ast-Expr-harder, r=petrochenkovbors-1/+1
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
2022-06-30lint: port path statement diagnosticsDavid Wood-4/+4
2022-06-30lint: port unused diagnosticsDavid Wood-30/+34
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-1/+1
2022-05-10only_local: always check for misuselcnr-19/+18
2022-04-05span: move `MultiSpan`David Wood-2/+2
2022-03-16rustc_error: make ErrorReported impossible to constructmark-5/+5
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-1/+1
2022-02-25Fix debug_assert in unused lint passflip1995-6/+6
2022-02-21use `List<Ty<'tcx>>` for tupleslcnr-1/+1
2021-12-19Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obkbors-1/+1
2021-12-19Rollup merge of #91956 - notriddle:notriddle/unused-parens-range, r=nagisaMatthias Krüger-1/+4
2021-12-17fix(rustc_lint): mark the parens around `(1..loop {})` as unusedMichael Howell-1/+1
2021-12-15fix(rustc_lint): better detect when parens are necessaryMichael Howell-1/+4
2021-12-15Remove unnecessary sigils around `Symbol::as_str()` calls.Nicholas Nethercote-1/+1
2021-12-11Show the unused type for `unused_results` lintNoah Lev-1/+3
2021-10-17Some "parenthesis" and "parentheses" fixesr00ster91-1/+1
2021-09-09Use more accurate spans for "unused delimiter" lintEsteban Kuber-68/+52
2021-08-31fix(rustc_lint): better detect when parens are necessaryMichael Howell-7/+10
2021-08-30Handle let-else initializer edge case errorsCameron Steffen-15/+28
2021-08-30Add let-else to ASTCameron Steffen-1/+1
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-62/+1
2021-08-15Introduce hir::ExprKind::Let - Take 2Caio-5/+7
2021-08-13move Constness into TraitPredicateDeadbeef-1/+1
2021-07-31Apply review suggestionYuki Okushi-10/+7
2021-07-31Add a hint that the expressions produce a valueYuki Okushi-1/+12
2021-06-18Lint for unused borrows as part of UNUSED_MUST_USEhi-rustin-0/+1
2021-06-10Add support for using qualified paths with structs in expression and patternRyan Levick-2/+2