about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/let_underscore.rs
AgeCommit message (Expand)AuthorLines
2025-02-08Rustfmtbjorn3-4/+5
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-1/+1
2024-09-26Fix the misleading diagnostic for let_underscore_drop on type without Drop im...makai410-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-6/+5
2024-07-30rustc_lint: make `let-underscore-lock` translatablePavel Grigorenko-6/+5
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+3
2024-06-03Fix up comments.Nicholas Nethercote-5/+5
2024-04-29Remove `extern crate rustc_session` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-03-22Rename `hir::Local` into `hir::LetStmt`Guillaume Gomez-1/+1
2024-03-06Rewrite the `untranslatable_diagnostic` lint.Nicholas Nethercote-0/+1
2024-01-23Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.Nicholas Nethercote-6/+2
2024-01-12Improve `let_underscore_lock`Nilstrieb-20/+39
2024-01-08Fix 2 variable binding issues in let_underscoreyukang-0/+5
2023-04-10Fix typos in compilerDaniPopes-1/+1
2023-01-09refactor: cleanupRejyr-2/+0
2023-01-09migrate: `let_underscore.rs`Rejyr-33/+16
2022-11-15Merge branch 'master' into patch-2Kagami Sascha Rosylight-0/+1
2022-11-14Specify language of code comment to generate documentkoka-1/+2
2022-10-25Fix failing examplesKagami Sascha Rosylight-1/+1
2022-10-24Update let_underscore.rsKagami Sascha Rosylight-2/+2
2022-10-24Update compiler/rustc_lint/src/let_underscore.rsKagami Sascha Rosylight-1/+1
2022-10-24Add `compile_fail` to `let_underscore_drop` exampleKagami Sascha Rosylight-1/+1
2022-10-01Refactor rustc lint APIMaybe Waffle-37/+30
2022-08-04Fix imports.Aaron Kofsky-2/+2
2022-08-04Explain why let-underscoring a lock guard is incorrect.Aaron Kofsky-2/+11
2022-06-17Re-allow `let_underscore_drop` by default.Aaron Kofsky-1/+1
2022-06-11Make `let_underscore_drop` Deny by default.Aaron Kofsky-1/+1
2022-06-11Have the drop code suggestion not include `let _ =`Aaron Kofsky-1/+1
2022-06-11Reword suggestion messages.Aaron Kofsky-2/+2
2022-06-09Use `multipart_suggestion` to create an applicable suggestion.Aaron Kofsky-4/+6
2022-06-05Add `{{produces}}` tag to lint doc comments.Aaron Kofsky-1/+8
2022-06-05Remove `let_underscore_must_use`Aaron Kofsky-103/+2
2022-06-04Use diagnostic items instead of hard coded paths for `let_underscore_lock`Aaron Kofsky-20/+11
2022-06-04Bail out early if the type does not has a trivial Drop implementation.Aaron Kofsky-2/+6
2022-06-04Use `has_attr` instead of `get_attrs` in `has_must_use_attr`Aaron Kofsky-4/+1
2022-06-04Move local functions to outer scope.Aaron Kofsky-69/+65
2022-06-04Set `let_underscore_lock` to Deny by default.Aaron Kofsky-2/+2
2022-06-04Show code suggestions in `let_undescore` lint messages.Aaron Kofsky-13/+47
2022-06-04Allow `let_underscore_drop` and `let_underscore_must_use` by default.Aaron Kofsky-2/+2
2022-06-04 Add `let_underscore_must_use` lint.Aaron Kofsky-2/+104
2022-06-04Add `let_underscore_lock` lint.Aaron Kofsky-2/+70
2022-05-29Add `let_underscore_drop` lint.Aaron Kofsky-0/+66