Skip to content

Conversation

@catamorphism
Copy link
Contributor

No description provided.

@bors bors closed this Feb 19, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
Fix redundant_clone lint not working with PathBuf and OsString

rust-lang/rust-clippy#4825 diabled MIR optimization in clippy, including `rustc_mir::transform::InstCombine` which reduces `&(*x)` to `x`. This PR tries to unwrap `&*` when looking into `mir::Rvalue`s.

Fixes rust-lang#5014.

---

changelog: fixed `redundant_clone` lint not working with `PathBuf` and `OsString`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants