1
Fork 0

Expand comment with possible improvements

This commit is contained in:
Dylan MacKenzie 2020-05-16 11:59:30 -07:00
parent 2cba138f4a
commit e369d7f4e7

View file

@ -21,8 +21,12 @@ use crate::transform::{MirPass, MirSource};
/// } /// }
/// ``` /// ```
/// ///
/// For now, this pass is very simple and only capable of eliminating a single copy. /// For now, this pass is very simple and only capable of eliminating a single copy. A more general
/// A more general version of copy propagation could yield even more benefits. /// version of copy propagation, such as the one based on non-overlapping live ranges in [#47954] and
/// [#71003], could yield even more benefits.
///
/// [#47954]: https://github.com/rust-lang/rust/pull/47954
/// [#71003]: https://github.com/rust-lang/rust/pull/71003
pub struct RenameReturnPlace; pub struct RenameReturnPlace;
impl<'tcx> MirPass<'tcx> for RenameReturnPlace { impl<'tcx> MirPass<'tcx> for RenameReturnPlace {