about summary refs log tree commit diff
path: root/clippy_lints/src/missing_assert_message.rs
AgeCommit message (Collapse)AuthorLines
2024-07-22Make restriction lint's use `span_lint_and_then` (m -> m)xFrednet-4/+6
2024-07-05Use `is_in_test` in more places.Jason Newcomb-2/+2
2024-05-23For restriction lints, replace “Why is this bad?” with “Why restrict ↵Kevin Reid-1/+1
this?” The `restriction` group contains many lints which are not about necessarily “bad” things, but style choices — perhaps even style choices which contradict conventional Rust style — or are otherwise very situational. This results in silly wording like “Why is this bad? It isn't, but ...”, which I’ve seen confuse a newcomer at least once. To improve this situation, this commit replaces the “Why is this bad?” section heading with “Why restrict this?”, for most, but not all, restriction lints. I left alone the ones whose placement in the restriction group is more incidental. In order to make this make sense, I had to remove the “It isn't, but” texts from the contents of the sections. Sometimes further changes were needed, or there were obvious fixes to make, and I went ahead and made those changes without attempting to split them into another commit, even though many of them are not strictly necessary for the “Why restrict this?” project.
2023-11-25Use absolute path for `declare_tool_lint` in `declare_clippy_lint`Alex Macleod-1/+1
2023-10-23Set existing doc-tests to `no_run`Alex Macleod-2/+2
2023-09-27Mention that `missing_assert_message` lint ignores test functionsunexge-0/+4
2023-07-14Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-3/+9
2023-06-02Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyupPhilipp Krones-1/+1
2023-05-29Update version attribute for 1.70 lintsxFrednet-1/+1
2023-03-10Merge commit '3c06e0b1ce003912f8fe0536d3a7fe22558e38cf' into clippyupPhilipp Krones-0/+82
2023-03-08Add `Known problems` sectionunexge-0/+7
Co-authored-by: Weihang Lo <me@weihanglo.tw>
2023-03-08Use late lint pass for `missing_assert_message` lintunexge-80/+26
Co-authored-by: Weihang Lo <me@weihanglo.tw>
2023-03-08Move lint to `restriction` categoryunexge-1/+1
Co-authored-by: Weihang Lo <me@weihanglo.tw>
2023-03-08Update lint description and add help sectionunexge-9/+15
Co-authored-by: Weihang Lo <me@weihanglo.tw>
2023-03-08Apply suggestions from code reviewBurak-3/+3
Co-authored-by: llogiq <bogusandre@gmail.com>
2023-03-08Add `missing_assert_message` lintBurak Varlı-0/+123
Co-authored-by: Weihang Lo <me@weihanglo.tw>