Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/diagnostics.rs')
-rw-r--r--crates/hir/src/diagnostics.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs
index 4bb8c140a1..ffb972475f 100644
--- a/crates/hir/src/diagnostics.rs
+++ b/crates/hir/src/diagnostics.rs
@@ -48,6 +48,7 @@ macro_rules! diagnostics {
// ]
diagnostics![
+ AwaitOutsideOfAsync,
BreakOutsideOfLoop,
ExpectedFunction,
InactiveCode,
@@ -135,6 +136,12 @@ pub struct UnreachableLabel {
pub name: Name,
}
+#[derive(Debug)]
+pub struct AwaitOutsideOfAsync {
+ pub node: InFile<AstPtr<ast::AwaitExpr>>,
+ pub location: String,
+}
+
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct UndeclaredLabel {
pub node: InFile<AstPtr<ast::Lifetime>>,