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 fc6733d648..3e5624bd2e 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -2410,7 +2410,7 @@ impl TypeArg { } /// 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 61580bd1a1..e68c77a626 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -1961,7 +1961,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// 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 ❱> {} /// ```