aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 17:17:46 +0100
committerveetaha <[email protected]>2020-05-10 17:17:46 +0100
commit09c438b47eb035e84bc013a3e78fae9f938e9b85 (patch)
tree260c93aa2f97d36824e58816fd0dd8c27cbda528
parent80c529d1dc57873ad07ed1eb656eafe72c9a7e29 (diff)
Properly document const impl as per flodiebold
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs4
-rw-r--r--xtask/src/ast_src.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 7de20bff7..c0f27a0f7 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -506,7 +506,7 @@ impl TypeAliasDef {
506/// ``` 506/// ```
507/// ❰ 507/// ❰
508/// #[attr] 508/// #[attr]
509/// unsafe impl<T> !Foo for Bar where T: Debug { 509/// unsafe impl<T> const !Foo for Bar where T: Debug {
510/// #![inner_attr] 510/// #![inner_attr]
511/// // ... 511/// // ...
512/// } 512/// }
@@ -2440,7 +2440,7 @@ impl LifetimeArg {
2440/// Constant value argument that is passed at generic instantiation site. 2440/// Constant value argument that is passed at generic instantiation site.
2441/// 2441///
2442/// ``` 2442/// ```
2443/// foo::<❰ u32 ❱, ❰ true ❱ >(); 2443/// foo::<❰ u32 ❱, ❰ true ❱>();
2444/// 2444///
2445/// bar::<❰ { 2 + 2} ❱>(); 2445/// bar::<❰ { 2 + 2} ❱>();
2446/// ``` 2446/// ```
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index e6182e857..c7cc0c35f 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -683,7 +683,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
683 /// ``` 683 /// ```
684 /// ❰ 684 /// ❰
685 /// #[attr] 685 /// #[attr]
686 /// unsafe impl<T> !Foo for Bar where T: Debug { 686 /// unsafe impl<T> const !Foo for Bar where T: Debug {
687 /// #![inner_attr] 687 /// #![inner_attr]
688 /// // ... 688 /// // ...
689 /// } 689 /// }
@@ -693,7 +693,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
693 /// [Reference](https://doc.rust-lang.org/reference/items/implementations.html) 693 /// [Reference](https://doc.rust-lang.org/reference/items/implementations.html)
694 struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner { 694 struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner {
695 T![default], 695 T![default],
696 T![const], // TODO: wat? 696 T![const],
697 T![unsafe], 697 T![unsafe],
698 T![impl], 698 T![impl],
699 T![!], 699 T![!],