bors 52b9e704c6 Auto merge of #5017 - sinkuu:mir_no_opt_fallout, r=flip1995
Fix redundant_clone lint not working with PathBuf and OsString

https://github.com/rust-lang/rust-clippy/pull/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`
2020-01-08 12:09:45 +00:00
..
2020-01-07 18:26:55 +09:00
2020-01-08 15:42:54 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 18:26:55 +09:00
2020-01-08 14:18:00 +09:00
2019-12-04 01:34:01 +01:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 01:46:33 +09:00
2020-01-07 18:26:55 +09:00