Import the prelude
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user