]> git.lizzy.rs Git - rust.git/commitdiff
Properly document const impl as per flodiebold
authorveetaha <veetaha2@gmail.com>
Sun, 10 May 2020 16:17:46 +0000 (19:17 +0300)
committerveetaha <veetaha2@gmail.com>
Sun, 10 May 2020 16:17:46 +0000 (19:17 +0300)
crates/ra_syntax/src/ast/generated/nodes.rs
xtask/src/ast_src.rs

index 7de20bff783dd500c6402c24aab9cc8aa298e418..c0f27a0f7611f3bab18cd1b970bf741f3c1d0bf3 100644 (file)
@@ -506,7 +506,7 @@ pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) }
 /// ```
 /// ❰
 ///     #[attr]
-///     unsafe impl<T> !Foo for Bar where T: Debug {
+///     unsafe impl<T> const !Foo for Bar where T: Debug {
 ///         #![inner_attr]
 ///         // ...
 ///     }
@@ -2440,7 +2440,7 @@ pub fn lifetime_token(&self) -> Option<SyntaxToken> {
 /// Constant value argument that is passed at generic instantiation site.
 ///
 /// ```
-/// foo::<❰ u32 ❱, ❰ true ❱ >();
+/// foo::<❰ u32 ❱, ❰ true ❱>();
 ///
 /// bar::<❰ { 2 + 2} ❱>();
 /// ```
index e6182e8572b1c669bb0a4204600a1934bf47daa2..c7cc0c35fafb419ff93d39646575c56a16a7c120 100644 (file)
@@ -683,7 +683,7 @@ struct TypeAliasDef: VisibilityOwner, NameOwner, TypeParamsOwner, AttrsOwner, Do
         /// ```
         /// ❰
         ///     #[attr]
-        ///     unsafe impl<T> !Foo for Bar where T: Debug {
+        ///     unsafe impl<T> const !Foo for Bar where T: Debug {
         ///         #![inner_attr]
         ///         // ...
         ///     }
@@ -693,7 +693,7 @@ struct TypeAliasDef: VisibilityOwner, NameOwner, TypeParamsOwner, AttrsOwner, Do
         /// [Reference](https://doc.rust-lang.org/reference/items/implementations.html)
         struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner {
             T![default],
-            T![const], // TODO: wat?
+            T![const],
             T![unsafe],
             T![impl],
             T![!],