-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enhance option_as_ref_deref
lint with the |x| &**x case
#5367
Comments
To be explicit, this should also probably cover |
If no one is working on this, I would like to take a stab. |
I am trying to work on this, but I failed to open nightly rustc docs link in cheatsheet. I search on bing.com but get nothing. Is it an intentional recent change or is it a temporary failure of something? |
I believe it was recently renamed. https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ |
@shepmaster, thank you. Are there local version of this doc come with rustup doc? |
I don't know. |
Ehance opt_as_ref_deref lint. - [x] Added passing UI tests (including committed `.stderr` file) - [x] `cargo test` passes locally - [x] Run `cargo dev fmt` Lint on opt.as_ref().map(|x| &**x). Fixes rust-lang#5367. changelog: lint on opt.as_ref().map(|x| &**x)
In #4945, the
option_as_ref_deref
lint was added. This lint should be enhanced, so that it also detects:Originally posted by @Areredify in #4945 (comment)
The text was updated successfully, but these errors were encountered: