mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-07 16:36:14 +00:00
Previously, we only rewrote `&self` and `&mut self` receivers. By instantiating the method from the trait definition, we can make this work work with arbitrary legal receivers instead.