Implement destructuring assignment for tuples
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
601c13c6fd
commit
3a7a997323
23 changed files with 395 additions and 86 deletions
|
@ -69,6 +69,7 @@ impl<'tcx> Visitor<'tcx> for MatchVisitor<'_, 'tcx> {
|
|||
hir::LocalSource::ForLoopDesugar => ("`for` loop binding", None),
|
||||
hir::LocalSource::AsyncFn => ("async fn binding", None),
|
||||
hir::LocalSource::AwaitDesugar => ("`await` future binding", None),
|
||||
hir::LocalSource::AssignDesugar(_) => ("destructuring assignment binding", None),
|
||||
};
|
||||
self.check_irrefutable(&loc.pat, msg, sp);
|
||||
self.check_patterns(&loc.pat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue