Merge pull request #3935 from cjhopman/todo

Change missing impl assist to use todo!() instead of unimplemented()
This commit is contained in:
Aleksey Kladov 2020-04-11 16:05:23 +02:00 committed by GitHub
commit 997c959d4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 20 deletions

View file

@ -100,6 +100,9 @@ pub fn expr_empty_block() -> ast::Expr {
pub fn expr_unimplemented() -> ast::Expr {
expr_from_text("unimplemented!()")
}
pub fn expr_todo() -> ast::Expr {
expr_from_text("todo!()")
}
pub fn expr_path(path: ast::Path) -> ast::Expr {
expr_from_text(&path.to_string())
}