Import the prelude

This commit is contained in:
Florian Diebold 2019-02-10 20:44:34 +01:00
parent 65266c644a
commit 1526eb25c9
7 changed files with 99 additions and 12 deletions

View file

@ -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)

View file

@ -596,7 +596,8 @@ Grammar(
options: [ "Pat", "TypeRef" ],
),
"UseItem": (
options: [ "UseTree" ]
traits: ["AttrsOwner"],
options: [ "UseTree" ],
),
"UseTree": (
options: [ "Path", "UseTreeList", "Alias" ]