From b9569886a915f2411adaecbcad28eda8b163c3e3 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Sun, 24 May 2020 16:28:02 -0400 Subject: Rename Expr::UnsafeBlock to Expr::Unsafe --- crates/ra_hir_def/src/body/lower.rs | 2 +- crates/ra_hir_def/src/expr.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir_def/src') diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 174bbf9f4..6eb72e950 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs @@ -220,7 +220,7 @@ impl ExprCollector<'_> { } ast::Effect::Unsafe(_) => { let body = self.collect_block_opt(e.block_expr()); - self.alloc_expr(Expr::UnsafeBlock { body }, syntax_ptr) + self.alloc_expr(Expr::Unsafe { body }, syntax_ptr) } // FIXME: we need to record these effects somewhere... ast::Effect::Async(_) | ast::Effect::Label(_) => { diff --git a/crates/ra_hir_def/src/expr.rs b/crates/ra_hir_def/src/expr.rs index f5e3e74fb..e41cfc16b 100644 --- a/crates/ra_hir_def/src/expr.rs +++ b/crates/ra_hir_def/src/expr.rs @@ -150,7 +150,7 @@ pub enum Expr { Tuple { exprs: Vec, }, - UnsafeBlock { + Unsafe { body: ExprId, }, Array(Array), @@ -250,7 +250,7 @@ impl Expr { f(*expr); } } - Expr::TryBlock { body } | Expr::UnsafeBlock { body } => f(*body), + Expr::TryBlock { body } | Expr::Unsafe { body } => f(*body), Expr::Loop { body, .. } => f(*body), Expr::While { condition, body, .. } => { f(*condition); -- cgit v1.2.3