mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
feat(diagnostics): use default expression instead of todo! when missing fields
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
0a4239a815
commit
b60a29ca94
6 changed files with 12 additions and 13 deletions
|
@ -76,7 +76,7 @@ pub mod ext {
|
|||
expr_from_text(r#""""#)
|
||||
}
|
||||
pub fn empty_char() -> ast::Expr {
|
||||
expr_from_text("''")
|
||||
expr_from_text("'\x00'")
|
||||
}
|
||||
pub fn default_bool() -> ast::Expr {
|
||||
expr_from_text("false")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue