From 09c438b47eb035e84bc013a3e78fae9f938e9b85 Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 19:17:46 +0300 Subject: Properly document const impl as per flodiebold --- crates/ra_syntax/src/ast/generated/nodes.rs | 4 ++-- xtask/src/ast_src.rs | 4 ++-- 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 { /// ``` /// ❰ /// #[attr] -/// unsafe impl !Foo for Bar where T: Debug { +/// unsafe impl const !Foo for Bar where T: Debug { /// #![inner_attr] /// // ... /// } @@ -2440,7 +2440,7 @@ impl LifetimeArg { /// Constant value argument that is passed at generic instantiation site. /// /// ``` -/// foo::<❰ u32 ❱, ❰ true ❱ >(); +/// foo::<❰ u32 ❱, ❰ true ❱>(); /// /// bar::<❰ { 2 + 2} ❱>(); /// ``` 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 { /// ``` /// ❰ /// #[attr] - /// unsafe impl !Foo for Bar where T: Debug { + /// unsafe impl const !Foo for Bar where T: Debug { /// #![inner_attr] /// // ... /// } @@ -693,7 +693,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// [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![!], -- cgit v1.2.3