-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Document impl Clone for Rc with Rc specific information #11993
Comments
cc #11991 |
This doesn't say it on the |
This will be fixed by #19112 |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 28, 2023
[`question_mark`]: also trigger on `return` statements This fixes the false negative mentioned in rust-lang#11993: the lint only used to check for `return` expressions, and not a statement containing a `return` expression (doesn't close the issue tho since there's still a useful suggestion that we could make, which is to suggest `.ok_or()?`/`.ok_or_else()?` for `else { return Err(..) }`) changelog: [`question_mark`]: also trigger on `return` statements
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current doc for Rc has:
As the above doesn't make sense for Rc it should have a specific comment.
The text was updated successfully, but these errors were encountered: