mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-07 11:00:38 +00:00
Import the prelude
This commit is contained in:
parent
65266c644a
commit
1526eb25c9
7 changed files with 99 additions and 12 deletions
|
@ -4210,6 +4210,7 @@ impl ToOwned for UseItem {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AttrsOwner for UseItem {}
|
||||
impl UseItem {
|
||||
pub fn use_tree(&self) -> Option<&UseTree> {
|
||||
super::child_opt(self)
|
||||
|
|
|
@ -596,7 +596,8 @@ Grammar(
|
|||
options: [ "Pat", "TypeRef" ],
|
||||
),
|
||||
"UseItem": (
|
||||
options: [ "UseTree" ]
|
||||
traits: ["AttrsOwner"],
|
||||
options: [ "UseTree" ],
|
||||
),
|
||||
"UseTree": (
|
||||
options: [ "Path", "UseTreeList", "Alias" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue