diff options
author | Aleksey Kladov <[email protected]> | 2020-04-11 15:05:23 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-11 15:05:23 +0100 |
commit | 997c959d4f373df0cbba09609c5e4d8215d3d0c7 (patch) | |
tree | ddfeeaa144fe1621fc205dce5a9d18e2cd6f6455 /crates/ra_syntax/src/ast | |
parent | 372414d27b41f60142f6c01fd48746a36e71f392 (diff) | |
parent | af04d45d32b5d9bdf949beb17152ef78dd4a0523 (diff) |
Merge pull request #3935 from cjhopman/todo
Change missing impl assist to use todo!() instead of unimplemented()
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/make.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index f39559e9e..0f4a50be4 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs | |||
@@ -100,6 +100,9 @@ pub fn expr_empty_block() -> ast::Expr { | |||
100 | pub fn expr_unimplemented() -> ast::Expr { | 100 | pub fn expr_unimplemented() -> ast::Expr { |
101 | expr_from_text("unimplemented!()") | 101 | expr_from_text("unimplemented!()") |
102 | } | 102 | } |
103 | pub fn expr_todo() -> ast::Expr { | ||
104 | expr_from_text("todo!()") | ||
105 | } | ||
103 | pub fn expr_path(path: ast::Path) -> ast::Expr { | 106 | pub fn expr_path(path: ast::Path) -> ast::Expr { |
104 | expr_from_text(&path.to_string()) | 107 | expr_from_text(&path.to_string()) |
105 | } | 108 | } |