about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lifetime_syntax.rs
AgeCommit message (Collapse)AuthorLines
2025-07-28Allow `cargo fix` to partially apply `mismatched_lifetime_syntaxes`Kornel-3/+6
2025-07-14Reword mismatched-lifetime-syntaxes text based on feedbackJake Goulding-31/+118
Key changes include: - Removal of the word "syntax" from the lint message. More accurately, it could have been something like "syntax group" or "syntax category", but avoiding it completely is easier. - The primary lint message now reflects exactly which mismatch is occurring, instead of trying to be general. A new `help` line is general across the mismatch kinds. - Suggestions have been reduced to be more minimal, no longer also changing non-idiomatic but unrelated aspects. - Suggestion text no longer mentions changes when those changes don't occur in that specific suggestion.
2025-06-25Add runtime check to avoid overwrite arg easily in diag and store and ↵xizheyin-2/+2
restore snapshot when set subdiag arg Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-06Apply `mismatched-lifetime-syntaxes` to trait and extern functionsJake Goulding-7/+33
2025-06-04Replace `elided_named_lifetimes` with `mismatched_lifetime_syntaxes`Jake Goulding-1/+1
2025-06-04Introduce the `mismatched_lifetime_syntaxes` lintJake Goulding-0/+503