From fdbd6bb11a0c47bf9ba1428e6bd432cd2ce72045 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Mon, 30 Sep 2019 11:58:53 +0300 Subject: Added test for check doc strings in crates. #1856 --- crates/ra_parser/src/grammar/attributes.rs | 2 ++ crates/ra_parser/src/grammar/expressions.rs | 2 ++ crates/ra_parser/src/grammar/expressions/atom.rs | 2 ++ crates/ra_parser/src/grammar/items.rs | 2 ++ crates/ra_parser/src/grammar/items/consts.rs | 2 ++ crates/ra_parser/src/grammar/items/nominal.rs | 2 ++ crates/ra_parser/src/grammar/items/traits.rs | 2 ++ crates/ra_parser/src/grammar/items/use_item.rs | 2 ++ crates/ra_parser/src/grammar/params.rs | 2 ++ crates/ra_parser/src/grammar/paths.rs | 2 ++ crates/ra_parser/src/grammar/patterns.rs | 2 ++ crates/ra_parser/src/grammar/type_args.rs | 2 ++ crates/ra_parser/src/grammar/type_params.rs | 2 ++ crates/ra_parser/src/grammar/types.rs | 2 ++ crates/ra_parser/src/parser.rs | 2 ++ crates/ra_parser/src/syntax_kind.rs | 2 ++ crates/ra_parser/src/syntax_kind/generated.rs | 2 +- crates/ra_parser/src/token_set.rs | 2 ++ 18 files changed, 35 insertions(+), 1 deletion(-) (limited to 'crates/ra_parser') diff --git a/crates/ra_parser/src/grammar/attributes.rs b/crates/ra_parser/src/grammar/attributes.rs index 1cfd301b5..975f0ef2d 100644 --- a/crates/ra_parser/src/grammar/attributes.rs +++ b/crates/ra_parser/src/grammar/attributes.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn inner_attributes(p: &mut Parser) { diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index 80b085280..413ecb278 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + mod atom; pub(crate) use self::atom::match_arm_list; diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index 457f42a26..a52bdb3ea 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; // test expr_literals diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs index 4c67a5c2e..85f7eeb00 100644 --- a/crates/ra_parser/src/grammar/items.rs +++ b/crates/ra_parser/src/grammar/items.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + mod consts; mod nominal; mod traits; diff --git a/crates/ra_parser/src/grammar/items/consts.rs b/crates/ra_parser/src/grammar/items/consts.rs index 310260689..742a7e056 100644 --- a/crates/ra_parser/src/grammar/items/consts.rs +++ b/crates/ra_parser/src/grammar/items/consts.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn static_def(p: &mut Parser, m: Marker) { diff --git a/crates/ra_parser/src/grammar/items/nominal.rs b/crates/ra_parser/src/grammar/items/nominal.rs index bede3b692..9d8fb8486 100644 --- a/crates/ra_parser/src/grammar/items/nominal.rs +++ b/crates/ra_parser/src/grammar/items/nominal.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn struct_def(p: &mut Parser, m: Marker, kind: SyntaxKind) { diff --git a/crates/ra_parser/src/grammar/items/traits.rs b/crates/ra_parser/src/grammar/items/traits.rs index 3742fd197..2c560e824 100644 --- a/crates/ra_parser/src/grammar/items/traits.rs +++ b/crates/ra_parser/src/grammar/items/traits.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; // test trait_item diff --git a/crates/ra_parser/src/grammar/items/use_item.rs b/crates/ra_parser/src/grammar/items/use_item.rs index 63ac37e9e..e3b991c8c 100644 --- a/crates/ra_parser/src/grammar/items/use_item.rs +++ b/crates/ra_parser/src/grammar/items/use_item.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn use_item(p: &mut Parser, m: Marker) { diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs index efc329243..c10b53316 100644 --- a/crates/ra_parser/src/grammar/params.rs +++ b/crates/ra_parser/src/grammar/params.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; // test param_list diff --git a/crates/ra_parser/src/grammar/paths.rs b/crates/ra_parser/src/grammar/paths.rs index 24b65128e..ca8e075a1 100644 --- a/crates/ra_parser/src/grammar/paths.rs +++ b/crates/ra_parser/src/grammar/paths.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) const PATH_FIRST: TokenSet = diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index aa9a6d18e..f5d12278c 100644 --- a/crates/ra_parser/src/grammar/patterns.rs +++ b/crates/ra_parser/src/grammar/patterns.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) const PATTERN_FIRST: TokenSet = expressions::LITERAL_FIRST diff --git a/crates/ra_parser/src/grammar/type_args.rs b/crates/ra_parser/src/grammar/type_args.rs index 8e97fe03c..7256c2697 100644 --- a/crates/ra_parser/src/grammar/type_args.rs +++ b/crates/ra_parser/src/grammar/type_args.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { diff --git a/crates/ra_parser/src/grammar/type_params.rs b/crates/ra_parser/src/grammar/type_params.rs index 7071c70ea..34406b5bd 100644 --- a/crates/ra_parser/src/grammar/type_params.rs +++ b/crates/ra_parser/src/grammar/type_params.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) fn opt_type_param_list(p: &mut Parser) { diff --git a/crates/ra_parser/src/grammar/types.rs b/crates/ra_parser/src/grammar/types.rs index 4e3522d48..d4ca94fca 100644 --- a/crates/ra_parser/src/grammar/types.rs +++ b/crates/ra_parser/src/grammar/types.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use super::*; pub(super) const TYPE_FIRST: TokenSet = paths::PATH_FIRST.union(token_set![ diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs index f8fba6860..dafd5247b 100644 --- a/crates/ra_parser/src/parser.rs +++ b/crates/ra_parser/src/parser.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::cell::Cell; use drop_bomb::DropBomb; diff --git a/crates/ra_parser/src/syntax_kind.rs b/crates/ra_parser/src/syntax_kind.rs index 3efcfa403..8d6bd057b 100644 --- a/crates/ra_parser/src/syntax_kind.rs +++ b/crates/ra_parser/src/syntax_kind.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + #[macro_use] mod generated; diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 8b43d93fe..96b5bce88 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs @@ -1,4 +1,4 @@ -// Generated file, do not edit by hand, see `crate/ra_tools/src/codegen` +//! Generated file, do not edit by hand, see `crate/ra_tools/src/codegen` #![allow(bad_style, missing_docs, unreachable_pub)] #[doc = r" The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`."] diff --git a/crates/ra_parser/src/token_set.rs b/crates/ra_parser/src/token_set.rs index 79121b35f..6dc061889 100644 --- a/crates/ra_parser/src/token_set.rs +++ b/crates/ra_parser/src/token_set.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::SyntaxKind; /// A bit-set of `SyntaxKind`s -- cgit v1.2.3