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_syntax/fuzz/fuzz_targets/parser.rs | 2 ++ crates/ra_syntax/fuzz/fuzz_targets/reparse.rs | 2 ++ crates/ra_syntax/src/algo.rs | 2 ++ crates/ra_syntax/src/algo/visit.rs | 2 ++ crates/ra_syntax/src/ast/generated.rs | 2 +- crates/ra_syntax/src/fuzz.rs | 2 ++ crates/ra_syntax/src/parsing/lexer.rs | 2 ++ crates/ra_syntax/src/parsing/text_token_source.rs | 2 ++ crates/ra_syntax/src/parsing/text_tree_sink.rs | 2 ++ crates/ra_syntax/src/ptr.rs | 2 ++ crates/ra_syntax/src/syntax_error.rs | 2 ++ crates/ra_syntax/src/validation.rs | 2 ++ crates/ra_syntax/src/validation/block.rs | 2 ++ 13 files changed, 25 insertions(+), 1 deletion(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/fuzz/fuzz_targets/parser.rs b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs index 76a8b08d0..7bc4ef30d 100644 --- a/crates/ra_syntax/fuzz/fuzz_targets/parser.rs +++ b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + #![no_main] use libfuzzer_sys::fuzz_target; use ra_syntax::fuzz::check_parser; diff --git a/crates/ra_syntax/fuzz/fuzz_targets/reparse.rs b/crates/ra_syntax/fuzz/fuzz_targets/reparse.rs index 45524d4c1..16598f5f1 100644 --- a/crates/ra_syntax/fuzz/fuzz_targets/reparse.rs +++ b/crates/ra_syntax/fuzz/fuzz_targets/reparse.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + #![no_main] use libfuzzer_sys::fuzz_target; use ra_syntax::fuzz::CheckReparse; diff --git a/crates/ra_syntax/src/algo.rs b/crates/ra_syntax/src/algo.rs index 46680a08f..e76f542ce 100644 --- a/crates/ra_syntax/src/algo.rs +++ b/crates/ra_syntax/src/algo.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + pub mod visit; use std::ops::RangeInclusive; diff --git a/crates/ra_syntax/src/algo/visit.rs b/crates/ra_syntax/src/algo/visit.rs index 87bd15cc0..4df275ba4 100644 --- a/crates/ra_syntax/src/algo/visit.rs +++ b/crates/ra_syntax/src/algo/visit.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{AstNode, SyntaxNode}; use std::marker::PhantomData; diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index dc1f8c82c..1d20d8972 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/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` use crate::{ ast::{self, AstChildren, AstNode}, diff --git a/crates/ra_syntax/src/fuzz.rs b/crates/ra_syntax/src/fuzz.rs index 698a624ec..7012df7f0 100644 --- a/crates/ra_syntax/src/fuzz.rs +++ b/crates/ra_syntax/src/fuzz.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{validation, AstNode, SourceFile, TextRange, TextUnit}; use ra_text_edit::AtomTextEdit; use std::str::{self, FromStr}; diff --git a/crates/ra_syntax/src/parsing/lexer.rs b/crates/ra_syntax/src/parsing/lexer.rs index bdb01d40b..6d839208d 100644 --- a/crates/ra_syntax/src/parsing/lexer.rs +++ b/crates/ra_syntax/src/parsing/lexer.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{ SyntaxKind::{self, *}, TextUnit, diff --git a/crates/ra_syntax/src/parsing/text_token_source.rs b/crates/ra_syntax/src/parsing/text_token_source.rs index 64cb20ae8..e793f93a4 100644 --- a/crates/ra_syntax/src/parsing/text_token_source.rs +++ b/crates/ra_syntax/src/parsing/text_token_source.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_parser::Token as PToken; use ra_parser::TokenSource; diff --git a/crates/ra_syntax/src/parsing/text_tree_sink.rs b/crates/ra_syntax/src/parsing/text_tree_sink.rs index be6e51780..142164316 100644 --- a/crates/ra_syntax/src/parsing/text_tree_sink.rs +++ b/crates/ra_syntax/src/parsing/text_tree_sink.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::mem; use ra_parser::{ParseError, TreeSink}; diff --git a/crates/ra_syntax/src/ptr.rs b/crates/ra_syntax/src/ptr.rs index 992034ef0..31167cada 100644 --- a/crates/ra_syntax/src/ptr.rs +++ b/crates/ra_syntax/src/ptr.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::{iter::successors, marker::PhantomData}; use crate::{AstNode, SyntaxKind, SyntaxNode, TextRange}; diff --git a/crates/ra_syntax/src/syntax_error.rs b/crates/ra_syntax/src/syntax_error.rs index 5aefec768..d6eca2ad7 100644 --- a/crates/ra_syntax/src/syntax_error.rs +++ b/crates/ra_syntax/src/syntax_error.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::fmt; use ra_parser::ParseError; diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index 16824f3c4..4f8935b2c 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + mod block; use rustc_lexer::unescape; diff --git a/crates/ra_syntax/src/validation/block.rs b/crates/ra_syntax/src/validation/block.rs index 3c9e96eb3..c85bbc1f4 100644 --- a/crates/ra_syntax/src/validation/block.rs +++ b/crates/ra_syntax/src/validation/block.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{ ast::{self, AstNode, AttrsOwner}, SyntaxError, -- cgit v1.2.3