You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mulkieran
changed the title
Strange sort-of-regression in a single lint
Strange sort-of-regression in a single lint: clippy::redundant-clone
Jan 7, 2020
Fix redundant_clone lint not working with PathBuf and OsString
#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#5014.
---
changelog: fixed `redundant_clone` lint not working with `PathBuf` and `OsString`
The evidence is here:
There is one failure, clippy task on 1.40. There is just a single error reported. What makes this interesting is:
So this correct clippy error appeared in 1.40, and went away again in 1.41.
The text was updated successfully, but these errors were encountered: