async await desugaring and tests

This commit is contained in:
Taylor Cramer
2018-06-06 15:50:59 -07:00
parent 589446e19c
commit cf844b547d
38 changed files with 1282 additions and 199 deletions

View File

@@ -277,6 +277,7 @@ pub enum ExprPrecedence {
Block,
Catch,
Struct,
Async,
}
impl PartialOrd for ExprPrecedence {
@@ -346,6 +347,7 @@ impl ExprPrecedence {
ExprPrecedence::Match |
ExprPrecedence::Block |
ExprPrecedence::Catch |
ExprPrecedence::Async |
ExprPrecedence::Struct => PREC_PAREN,
}
}