1
Fork 0

Correct documentation about FakeRead

This commit is contained in:
Oliver Scherer 2018-12-12 13:09:36 +01:00
parent 2cb5e3d490
commit 6ca2ad5844

View file

@ -1760,7 +1760,8 @@ pub enum StatementKind<'tcx> {
/// kind of pattern it comes from. This is in order to adapt potential
/// error messages to these specific patterns.
///
/// Note that this also is emitted for regular `let` bindings to aid destructuring diagnostics
/// Note that this also is emitted for regular `let` bindings to ensure that locals that are
/// never accessed still get some sanity checks for e.g. `let x: ! = ..;`
FakeRead(FakeReadCause, Place<'tcx>),
/// Write the discriminant for a variant to the enum Place.