Skip to content

Reword mismatched-lifetime-syntaxes text based on feedback #143914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shepmaster
Copy link
Member

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.

r? @jieyouxu

@shepmaster shepmaster added the L-mismatched_lifetime_syntaxes Lint: mismatched_lifetime_syntaxes label Jul 14, 2025
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 14, 2025
@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member

I'll look at this on Wednesday.

@shepmaster shepmaster force-pushed the mismatched-lifetime-syntaxes-rewording branch from 677cf7b to 14baad4 Compare July 14, 2025 13:34
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.
@shepmaster shepmaster force-pushed the mismatched-lifetime-syntaxes-rewording branch from 14baad4 to 5530744 Compare July 14, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-mismatched_lifetime_syntaxes Lint: mismatched_lifetime_syntaxes S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants