Expand comment with possible improvements
This commit is contained in:
parent
2cba138f4a
commit
e369d7f4e7
1 changed files with 6 additions and 2 deletions
|
@ -21,8 +21,12 @@ use crate::transform::{MirPass, MirSource};
|
|||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// For now, this pass is very simple and only capable of eliminating a single copy.
|
||||
/// A more general version of copy propagation could yield even more benefits.
|
||||
/// For now, this pass is very simple and only capable of eliminating a single copy. A more general
|
||||
/// 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;
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for RenameReturnPlace {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue