Skip to content

Conversation

@mrchilliballs
Copy link

@mrchilliballs mrchilliballs commented Nov 21, 2025

The implementation is close to finished, all that is left is having it check a few more places (e.g. inside turbofish syntax in expressions), walk through types recursively, improve the lint message, and improve the tests. A refactor might be good as well.
I'm opening this draft PR because I would like to get some feedback before finishing the lint completely. I would appreciate it if someone could take a look to see if everything is in order. The implementation is basically looking at the fully resolved type and checks the alias type and type alias to determine if an argument is unnecessary.


  • Followed [lint naming conventions][lint_naming]
  • Added passing UI tests (including committed .stderr file)
  • cargo test passes locally
  • Executed cargo dev update_lints
  • Added lint documentation
  • Run cargo dev fmt

fixes #14848

changelog: [`explicit_default_arguments`]: TODO

@rustbot
Copy link
Collaborator

rustbot commented Nov 21, 2025

☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lint idea: useless_default_generic_parameters

2 participants