From 1526eb25c98fd16a9c0d114d0ed44e8fec1cc19c Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 10 Feb 2019 20:44:34 +0100 Subject: Import the prelude --- crates/ra_syntax/src/ast/generated.rs | 1 + crates/ra_syntax/src/grammar.ron | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 5df3f2ccf..7c5e8ce5e 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -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) diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 2e4b2d776..304bc5909 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -596,7 +596,8 @@ Grammar( options: [ "Pat", "TypeRef" ], ), "UseItem": ( - options: [ "UseTree" ] + traits: ["AttrsOwner"], + options: [ "UseTree" ], ), "UseTree": ( options: [ "Path", "UseTreeList", "Alias" ] -- cgit v1.2.3