aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 18:52:25 +0100
committerveetaha <[email protected]>2020-05-10 18:52:25 +0100
commitf6fd4c4a74b768f05c3dff8e991066e425ebc368 (patch)
tree10d81d015aaea4348d9407f2b43de7f8133f9e20
parent9a82ee0de25901447fc49a9337d7290c0e6f6532 (diff)
Correcy use tree and type args docs
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs6
-rw-r--r--xtask/src/ast_src.rs8
2 files changed, 6 insertions, 8 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 3e5624bd2..2b652dcb5 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -2234,7 +2234,7 @@ impl UseItem {
2234/// pub use ❰ foo::❰ * ❱ ❱; 2234/// pub use ❰ foo::❰ * ❱ ❱;
2235/// use ❰ bar as baz ❱; 2235/// use ❰ bar as baz ❱;
2236/// use ❰ bruh::bruuh::{ ❰ self ❱, ❰ blin ❱ } ❱; 2236/// use ❰ bruh::bruuh::{ ❰ self ❱, ❰ blin ❱ } ❱;
2237/// use ❰ { ❰ blin::blen ❱ } ❱ // TODO: clarify if top-level curlies are `UseTree` 2237/// use ❰ { ❰ blin::blen ❱ } ❱
2238/// ``` 2238/// ```
2239/// 2239///
2240/// [Reference](https://doc.rust-lang.org/reference/items/use-declarations.html) 2240/// [Reference](https://doc.rust-lang.org/reference/items/use-declarations.html)
@@ -2374,7 +2374,7 @@ impl PathSegment {
2374/// List of type arguments that are passed at generic instantiation site. 2374/// List of type arguments that are passed at generic instantiation site.
2375/// 2375///
2376/// ``` 2376/// ```
2377/// use foo ❰ ::<'a, u64, Item = Bar, 42, true> ❱::bar; 2377/// type _ = Foo ❰ ::<'a, u64, Item = Bar, 42, {true}> ❱::Bar;
2378/// 2378///
2379/// Vec❰ ::<bool> ❱::(); 2379/// Vec❰ ::<bool> ❱::();
2380/// ``` 2380/// ```
@@ -2397,7 +2397,7 @@ impl TypeArgList {
2397/// Type argument that is passed at generic instantiation site. 2397/// Type argument that is passed at generic instantiation site.
2398/// 2398///
2399/// ``` 2399/// ```
2400/// use foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::baz; 2400/// type _ = Foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::Baz;
2401/// ``` 2401/// ```
2402/// 2402///
2403/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions) 2403/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index e68c77a62..815c5f885 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -1831,14 +1831,13 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1831 UseTree, 1831 UseTree,
1832 } 1832 }
1833 1833
1834 // TODO: verify example correctness
1835 /// Use tree. 1834 /// Use tree.
1836 /// 1835 ///
1837 /// ``` 1836 /// ```
1838 /// pub use ❰ foo::❰ * ❱ ❱; 1837 /// pub use ❰ foo::❰ * ❱ ❱;
1839 /// use ❰ bar as baz ❱; 1838 /// use ❰ bar as baz ❱;
1840 /// use ❰ bruh::bruuh::{ ❰ self ❱, ❰ blin ❱ } ❱; 1839 /// use ❰ bruh::bruuh::{ ❰ self ❱, ❰ blin ❱ } ❱;
1841 /// use ❰ { ❰ blin::blen ❱ } ❱ // TODO: clarify if top-level curlies are `UseTree` 1840 /// use ❰ { ❰ blin::blen ❱ } ❱
1842 /// ``` 1841 /// ```
1843 /// 1842 ///
1844 /// [Reference](https://doc.rust-lang.org/reference/items/use-declarations.html) 1843 /// [Reference](https://doc.rust-lang.org/reference/items/use-declarations.html)
@@ -1929,11 +1928,10 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1929 T![::], T![crate], T![self], T![super], T![<], NameRef, TypeArgList, ParamList, RetType, PathType, T![>] 1928 T![::], T![crate], T![self], T![super], T![<], NameRef, TypeArgList, ParamList, RetType, PathType, T![>]
1930 } 1929 }
1931 1930
1932 // TODO: verify the example
1933 /// List of type arguments that are passed at generic instantiation site. 1931 /// List of type arguments that are passed at generic instantiation site.
1934 /// 1932 ///
1935 /// ``` 1933 /// ```
1936 /// use foo ❰ ::<'a, u64, Item = Bar, 42, true> ❱::bar; 1934 /// type _ = Foo ❰ ::<'a, u64, Item = Bar, 42, {true}> ❱::Bar;
1937 /// 1935 ///
1938 /// Vec❰ ::<bool> ❱::(); 1936 /// Vec❰ ::<bool> ❱::();
1939 /// ``` 1937 /// ```
@@ -1953,7 +1951,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1953 /// Type argument that is passed at generic instantiation site. 1951 /// Type argument that is passed at generic instantiation site.
1954 /// 1952 ///
1955 /// ``` 1953 /// ```
1956 /// use foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::baz; 1954 /// type _ = Foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::Baz;
1957 /// ``` 1955 /// ```
1958 /// 1956 ///
1959 /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions) 1957 /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)