aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/ast
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-10 13:26:52 +0100
committerGitHub <[email protected]>2021-05-10 13:26:52 +0100
commit619eb96153743c3c4406f1cdd0f85b82abea1587 (patch)
tree9970300ac753fa7856defc709a73fc886d55880c /crates/syntax/src/ast
parentfd109fb587904cfecc1149e068814bfd38feb83c (diff)
parentbf26e13cd252a6337aa290adf842bf72e2523c4d (diff)
Merge #8789
8789: simplify r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r--crates/syntax/src/ast/make.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs
index a378b1d37..1998ad1f6 100644
--- a/crates/syntax/src/ast/make.rs
+++ b/crates/syntax/src/ast/make.rs
@@ -31,6 +31,9 @@ pub mod ext {
31 pub fn expr_todo() -> ast::Expr { 31 pub fn expr_todo() -> ast::Expr {
32 expr_from_text("todo!()") 32 expr_from_text("todo!()")
33 } 33 }
34 pub fn empty_block_expr() -> ast::BlockExpr {
35 block_expr(None, None)
36 }
34 37
35 pub fn ty_bool() -> ast::Type { 38 pub fn ty_bool() -> ast::Type {
36 ty_path(ident_path("bool")) 39 ty_path(ident_path("bool"))