Correct documentation about FakeRead
This commit is contained in:
parent
2cb5e3d490
commit
6ca2ad5844
1 changed files with 2 additions and 1 deletions
|
@ -1760,7 +1760,8 @@ pub enum StatementKind<'tcx> {
|
||||||
/// kind of pattern it comes from. This is in order to adapt potential
|
/// kind of pattern it comes from. This is in order to adapt potential
|
||||||
/// error messages to these specific patterns.
|
/// 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>),
|
FakeRead(FakeReadCause, Place<'tcx>),
|
||||||
|
|
||||||
/// Write the discriminant for a variant to the enum Place.
|
/// Write the discriminant for a variant to the enum Place.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue