Skip to content

Commit 2f9271b

Browse files
Clarify FIXME
1 parent ffd9445 commit 2f9271b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_mir/src/transform/dest_prop.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
//! and performing the optimization would simply delete the assignment, leaving `dest`
4545
//! uninitialized.
4646
//!
47-
//! * `src` must be a bare `Local` without any indirections or field projections (FIXME: Why?).
48-
//! It can be copied or moved by the assignment.
47+
//! * `src` must be a bare `Local` without any indirections or field projections (FIXME: Is this a
48+
//! fundamental restriction or just current impl state?). It can be copied or moved by the
49+
//! assignment.
4950
//!
5051
//! * The `dest` and `src` locals must never be [*live*][liveness] at the same time. If they are, it
5152
//! means that they both hold a (potentially different) value that is needed by a future use of

0 commit comments

Comments
 (0)