aboutsummaryrefslogtreecommitdiff
path: root/xtask
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 /xtask
parent9a82ee0de25901447fc49a9337d7290c0e6f6532 (diff)
Correcy use tree and type args docs
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/ast_src.rs8
1 files changed, 3 insertions, 5 deletions
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)