mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add ast versions of generate{_trait}_impl_text{_intransitive}
This commit is contained in:
parent
8c0661b2de
commit
3924a0ef7c
2 changed files with 105 additions and 2 deletions
|
@ -895,7 +895,12 @@ pub fn trait_(
|
|||
ast_from_text(&text)
|
||||
}
|
||||
|
||||
pub fn type_bound(bound: &str) -> ast::TypeBound {
|
||||
// FIXME: remove when no one depends on `generate_impl_text_inner`
|
||||
pub fn type_bound_text(bound: &str) -> ast::TypeBound {
|
||||
ast_from_text(&format!("fn f<T: {bound}>() {{ }}"))
|
||||
}
|
||||
|
||||
pub fn type_bound(bound: ast::Type) -> ast::TypeBound {
|
||||
ast_from_text(&format!("fn f<T: {bound}>() {{ }}"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue