mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-02 16:47:26 +00:00
fix: use placeholder as default type in Generate function
.
This commit is contained in:
parent
5506e0dfaf
commit
a6c650edf6
2 changed files with 31 additions and 28 deletions
|
@ -95,6 +95,9 @@ pub fn lifetime(text: &str) -> ast::Lifetime {
|
|||
pub fn ty(text: &str) -> ast::Type {
|
||||
ty_from_text(text)
|
||||
}
|
||||
pub fn ty_placeholder() -> ast::Type {
|
||||
ty_from_text("_")
|
||||
}
|
||||
pub fn ty_unit() -> ast::Type {
|
||||
ty_from_text("()")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue