doc: the source of LetStmt can also be AssignDesugar

For example, the two following statements are desugared into a block
whose `LetStmt` source is `AssignDesugar`:

```rust
_ = ignoring_some_result();
(a, b) = (b, a);
```
This commit is contained in:
Samuel Tardieu 2024-09-18 14:49:20 +02:00
parent 82d17a4db3
commit a47e9b6c54

View File

@ -1378,7 +1378,8 @@ pub struct LetStmt<'hir> {
pub hir_id: HirId,
pub span: Span,
/// Can be `ForLoopDesugar` if the `let` statement is part of a `for` loop
/// desugaring. Otherwise will be `Normal`.
/// desugaring, or `AssignDesugar` if it is the result of a complex
/// assignment desugaring. Otherwise will be `Normal`.
pub source: LocalSource,
}