mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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:
parent
82d17a4db3
commit
a47e9b6c54
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user