about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/unused.rs
AgeCommit message (Expand)AuthorLines
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
2023-08-04Improve spans for indexing expressionsNilstrieb-2/+2
2023-07-25inline format!() args from rustc_codegen_llvm to the end (4)Matthias Krüger-5/+5
2023-07-14refactor(rustc_middle): Substs -> GenericArgMahdi Dibaiee-16/+19
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-1/+3
2023-06-22Migrate item_bounds to ty::ClauseMichael Goulet-3/+2
2023-06-19s/Clause/ClauseKindMichael Goulet-1/+1
2023-06-15Extend `unused_must_use` to cover block exprs许杰友 Jieyou Xu (Joe)-13/+81
2023-06-05Ensure space is inserted after keyword in `unused_delims`clubby789-17/+42
2023-05-24Use `Option::is_some_and` and `Result::is_ok_and` in the compilerMaybe Waffle-2/+2
2023-05-12Dont check `must_use` on nested `impl Future` from fnMichael Goulet-1/+3
2023-04-20add subst_identity_iter and subst_identity_iter_copied methods on EarlyBinder...Kyle Matsuda-23/+17
2023-04-20add EarlyBinder to output of explicit_item_bounds; replace bound_explicit_ite...Kyle Matsuda-1/+1
2023-04-20change usages of explicit_item_bounds to bound_explicit_item_boundsKyle Matsuda-17/+23
2023-04-17Rollup merge of #110257 - lukas-code:why-would-anyone-write-code-like-that-an...Matthias Krüger-18/+32
2023-04-16fix clippy::toplevel_ref_arg and ::manual_mapMatthias Krüger-23/+16
2023-04-13emit `unused_parens` for `break` if it is not immediately followed by a blockLukas Markeffsky-4/+6
2023-04-13fix false positives for `unused_parens` around unary and binary operationsLukas Markeffsky-18/+30
2023-04-11Allow the elaborator to only filter to real supertraitsMichael Goulet-0/+2
2023-04-06Make elaborator genericMichael Goulet-19/+16
2023-04-04Rename `ast::Static` to `ast::StaticItem` to match `ast::ConstItem`Oli Scherer-1/+1
2023-04-04box a bunch of large typesOli Scherer-2/+2
2023-04-04Split out ast::ItemKind::Const into its own structOli Scherer-1/+3
2023-04-04rust-analyzer guided tuple field to named fieldOli Scherer-1/+1
2023-04-04rust-analyzer guided enum variant structificationOli Scherer-1/+1
2023-03-26Don't elaborate non-obligations into obligationsMichael Goulet-2/+2
2023-03-15error-msg: expand suggestion for unused lintEzra Shaw-19/+12
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-1/+0
2023-03-11Rollup merge of #104363 - WaffleLapkin:bonk_box_new, r=NilstriebMatthias Krüger-2/+6
2023-03-03Make `unused_allocation` lint warn against `Box::new`Maybe Waffle-2/+6
2023-03-02rustc_middle: Remove trait `DefIdTree`Vadim Petrochenkov-1/+1
2023-02-14s/eval_usize/eval_target_usize/ for clarityOli Scherer-1/+1
2023-02-06Auto merge of #103761 - chenyukang:yukang/fix-103320-must-use, r=compiler-errorsbors-2/+16
2023-02-05Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errorsbors-0/+4
2023-02-04don't point at nonexisting code beyond EOF when warning about unused delimsMatthias Krüger-0/+4
2023-02-04Fix #103320, add explanatory message for [#must_use]yukang-2/+16
2023-02-02Emit warnings on unused parens/braces in index expressionsAidan Olsen-0/+4
2023-01-17Rollup merge of #106148 - chenyukang:yukang/fix-105061-unused, r=lcnrDylan DPC-23/+55
2023-01-16comments feedbackyukang-24/+28
2023-01-15Fix regression in `unused_braces` with macrosclubby789-4/+8
2023-01-14Fix `unused_braces` on generic const expr macro callclubby789-0/+1
2023-01-14fix issues in unused lintyukang-11/+40
2023-01-14fix #105061, Fix unused_parens issue for higher ranked function pointersyukang-1/+0
2023-01-09refactor: cleanupRejyr-2/+0
2023-01-09migrate: `unused.rs`Rejyr-102/+69
2023-01-04Address commentsMichael Goulet-1/+1
2023-01-04Simplify some iterator combinatorsMichael Goulet-16/+11