Skip to content
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

Fix incorrect mutable suggestion information for binding in ref pattern. #122677

Merged
merged 1 commit into from
Mar 19, 2024

Commits on Mar 19, 2024

  1. Fix incorrect mutable suggestion information for binding in ref pattern.

    For ref pattern in func param, the mutability suggestion has to apply to the binding.
    
    For example: `fn foo(&x: &i32)` -> `fn foo(&(mut x): &i32)`
    
    fixes rust-lang#122415
    surechen committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    19f72df View commit details
    Browse the repository at this point in the history