From 2af6b4b67ea72b7c8365eb1bc719c896b030123d Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 20:23:29 +0300 Subject: [PATCH] Correct `use` cannot have type args as per flodiebold --- crates/ra_syntax/src/ast/generated/nodes.rs | 2 +- xtask/src/ast_src.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index fc6733d648c..3e5624bd2e9 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -2410,7 +2410,7 @@ pub fn type_ref(&self) -> Option { support::child(&self.syntax) } } /// Associated type argument that is passed at generic instantiation site. /// ``` -/// use foo::<'a, u64, bool, ❰ Item = Bar ❱, 42>::baz; +/// type Foo = Bar::<'a, u64, bool, ❰ Item = Baz ❱, 42>::Bruh; /// /// trait Bruh: Iterator<❰ Item: Debug ❱> {} /// ``` diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 61580bd1a18..e68c77a626d 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -1961,7 +1961,7 @@ struct TypeArg { TypeRef } /// Associated type argument that is passed at generic instantiation site. /// ``` - /// use foo::<'a, u64, bool, ❰ Item = Bar ❱, 42>::baz; + /// type Foo = Bar::<'a, u64, bool, ❰ Item = Baz ❱, 42>::Bruh; /// /// trait Bruh: Iterator<❰ Item: Debug ❱> {} /// ``` -- 2.44.0