Skip to content

Commit 6ca2ad5

Browse files
committed
Correct documentation about FakeRead
1 parent 2cb5e3d commit 6ca2ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/mir/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,8 @@ pub enum StatementKind<'tcx> {
17601760
/// kind of pattern it comes from. This is in order to adapt potential
17611761
/// error messages to these specific patterns.
17621762
///
1763-
/// Note that this also is emitted for regular `let` bindings to aid destructuring diagnostics
1763+
/// Note that this also is emitted for regular `let` bindings to ensure that locals that are
1764+
/// never accessed still get some sanity checks for e.g. `let x: ! = ..;`
17641765
FakeRead(FakeReadCause, Place<'tcx>),
17651766

17661767
/// Write the discriminant for a variant to the enum Place.

0 commit comments

Comments
 (0)