mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
![]() E.g. improving code like this: ``` match &*self { &Enum1::Single { x: ref __self_0 } => { ::core:#️⃣:Hash::hash(&*__self_0, state) } } ``` to this: ``` match self { Enum1::Single { x: __self_0 } => { ::core:#️⃣:Hash::hash(&*__self_0, state) } } ``` by removing the `&*`, the `&`, and the `ref`. I suspect the current generated code predates deref-coercion. The commit also gets rid of `use_temporaries`, instead passing around `always_copy`, which makes things a little clearer. And it fixes up some comments. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |