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_assists/src/assist_ctx.rs | 2 ++ crates/ra_assists/src/assists/add_derive.rs | 2 ++ crates/ra_assists/src/assists/add_explicit_type.rs | 2 ++ crates/ra_assists/src/assists/add_impl.rs | 2 ++ crates/ra_assists/src/assists/add_missing_impl_members.rs | 2 ++ crates/ra_assists/src/assists/auto_import.rs | 2 ++ crates/ra_assists/src/assists/change_visibility.rs | 2 ++ crates/ra_assists/src/assists/fill_match_arms.rs | 2 ++ crates/ra_assists/src/assists/flip_binexpr.rs | 2 ++ crates/ra_assists/src/assists/flip_comma.rs | 2 ++ crates/ra_assists/src/assists/inline_local_variable.rs | 2 ++ crates/ra_assists/src/assists/introduce_variable.rs | 2 ++ crates/ra_assists/src/assists/merge_match_arms.rs | 2 ++ crates/ra_assists/src/assists/move_bounds.rs | 2 ++ crates/ra_assists/src/assists/move_guard.rs | 2 ++ crates/ra_assists/src/assists/raw_string.rs | 2 ++ crates/ra_assists/src/assists/remove_dbg.rs | 2 ++ crates/ra_assists/src/assists/replace_if_let_with_match.rs | 2 ++ crates/ra_assists/src/assists/split_import.rs | 2 ++ crates/ra_assists/src/ast_editor.rs | 2 ++ crates/ra_assists/src/marks.rs | 2 ++ 21 files changed, 42 insertions(+) (limited to 'crates/ra_assists') diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs index c45262efa..c8ba4f035 100644 --- a/crates/ra_assists/src/assist_ctx.rs +++ b/crates/ra_assists/src/assist_ctx.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_db::FileRange; use ra_fmt::{leading_indent, reindent}; diff --git a/crates/ra_assists/src/assists/add_derive.rs b/crates/ra_assists/src/assists/add_derive.rs index 9c88644df..45814838f 100644 --- a/crates/ra_assists/src/assists/add_derive.rs +++ b/crates/ra_assists/src/assists/add_derive.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ ast::{self, AstNode, AttrsOwner}, diff --git a/crates/ra_assists/src/assists/add_explicit_type.rs b/crates/ra_assists/src/assists/add_explicit_type.rs index 78f0f7f28..8c83dc987 100644 --- a/crates/ra_assists/src/assists/add_explicit_type.rs +++ b/crates/ra_assists/src/assists/add_explicit_type.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::{db::HirDatabase, HirDisplay, Ty}; use ra_syntax::{ ast::{self, AstNode, LetStmt, NameOwner}, diff --git a/crates/ra_assists/src/assists/add_impl.rs b/crates/ra_assists/src/assists/add_impl.rs index 4b61f4031..94801fbc9 100644 --- a/crates/ra_assists/src/assists/add_impl.rs +++ b/crates/ra_assists/src/assists/add_impl.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use format_buf::format; use hir::db::HirDatabase; use join_to_string::join; diff --git a/crates/ra_assists/src/assists/add_missing_impl_members.rs b/crates/ra_assists/src/assists/add_missing_impl_members.rs index 682455bce..9edf1b21a 100644 --- a/crates/ra_assists/src/assists/add_missing_impl_members.rs +++ b/crates/ra_assists/src/assists/add_missing_impl_members.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::{db::HirDatabase, HasSource}; use ra_syntax::{ ast::{self, make, AstNode, NameOwner}, diff --git a/crates/ra_assists/src/assists/auto_import.rs b/crates/ra_assists/src/assists/auto_import.rs index 419e93330..02c58e7c6 100644 --- a/crates/ra_assists/src/assists/auto_import.rs +++ b/crates/ra_assists/src/assists/auto_import.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::{self, db::HirDatabase}; use ra_text_edit::TextEditBuilder; diff --git a/crates/ra_assists/src/assists/change_visibility.rs b/crates/ra_assists/src/assists/change_visibility.rs index 60c74debc..df92c6b67 100644 --- a/crates/ra_assists/src/assists/change_visibility.rs +++ b/crates/ra_assists/src/assists/change_visibility.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ ast::{self, NameOwner, VisibilityOwner}, diff --git a/crates/ra_assists/src/assists/fill_match_arms.rs b/crates/ra_assists/src/assists/fill_match_arms.rs index db82db89a..7335cce09 100644 --- a/crates/ra_assists/src/assists/fill_match_arms.rs +++ b/crates/ra_assists/src/assists/fill_match_arms.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::iter; use hir::{db::HirDatabase, Adt, HasSource}; diff --git a/crates/ra_assists/src/assists/flip_binexpr.rs b/crates/ra_assists/src/assists/flip_binexpr.rs index b55b36a8e..c51035282 100644 --- a/crates/ra_assists/src/assists/flip_binexpr.rs +++ b/crates/ra_assists/src/assists/flip_binexpr.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::ast::{AstNode, BinExpr, BinOp}; diff --git a/crates/ra_assists/src/assists/flip_comma.rs b/crates/ra_assists/src/assists/flip_comma.rs index 5ee7561bc..e31cc5e7d 100644 --- a/crates/ra_assists/src/assists/flip_comma.rs +++ b/crates/ra_assists/src/assists/flip_comma.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{algo::non_trivia_sibling, Direction, T}; diff --git a/crates/ra_assists/src/assists/inline_local_variable.rs b/crates/ra_assists/src/assists/inline_local_variable.rs index eedb29199..9bd64decc 100644 --- a/crates/ra_assists/src/assists/inline_local_variable.rs +++ b/crates/ra_assists/src/assists/inline_local_variable.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ ast::{self, AstNode, AstToken}, diff --git a/crates/ra_assists/src/assists/introduce_variable.rs b/crates/ra_assists/src/assists/introduce_variable.rs index 470ffe120..43378c4b0 100644 --- a/crates/ra_assists/src/assists/introduce_variable.rs +++ b/crates/ra_assists/src/assists/introduce_variable.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use format_buf::format; use hir::db::HirDatabase; use ra_syntax::{ diff --git a/crates/ra_assists/src/assists/merge_match_arms.rs b/crates/ra_assists/src/assists/merge_match_arms.rs index 3b6a99895..17baa98f9 100644 --- a/crates/ra_assists/src/assists/merge_match_arms.rs +++ b/crates/ra_assists/src/assists/merge_match_arms.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{Assist, AssistCtx, AssistId, TextRange, TextUnit}; use hir::db::HirDatabase; use ra_syntax::ast::{AstNode, MatchArm}; diff --git a/crates/ra_assists/src/assists/move_bounds.rs b/crates/ra_assists/src/assists/move_bounds.rs index fd4bdc55c..32fab03c9 100644 --- a/crates/ra_assists/src/assists/move_bounds.rs +++ b/crates/ra_assists/src/assists/move_bounds.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ ast::{self, make, AstNode, NameOwner, TypeBoundsOwner}, diff --git a/crates/ra_assists/src/assists/move_guard.rs b/crates/ra_assists/src/assists/move_guard.rs index 699221e33..51aea6334 100644 --- a/crates/ra_assists/src/assists/move_guard.rs +++ b/crates/ra_assists/src/assists/move_guard.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ ast, diff --git a/crates/ra_assists/src/assists/raw_string.rs b/crates/ra_assists/src/assists/raw_string.rs index 965a64c98..388ee7e97 100644 --- a/crates/ra_assists/src/assists/raw_string.rs +++ b/crates/ra_assists/src/assists/raw_string.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::db::HirDatabase; use ra_syntax::{ast::AstNode, ast::Literal, TextRange, TextUnit}; diff --git a/crates/ra_assists/src/assists/remove_dbg.rs b/crates/ra_assists/src/assists/remove_dbg.rs index 870133fda..1a7e2b305 100644 --- a/crates/ra_assists/src/assists/remove_dbg.rs +++ b/crates/ra_assists/src/assists/remove_dbg.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{Assist, AssistCtx, AssistId}; use hir::db::HirDatabase; use ra_syntax::{ diff --git a/crates/ra_assists/src/assists/replace_if_let_with_match.rs b/crates/ra_assists/src/assists/replace_if_let_with_match.rs index 401835c57..749ff338a 100644 --- a/crates/ra_assists/src/assists/replace_if_let_with_match.rs +++ b/crates/ra_assists/src/assists/replace_if_let_with_match.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use format_buf::format; use hir::db::HirDatabase; use ra_fmt::extract_trivial_expression; diff --git a/crates/ra_assists/src/assists/split_import.rs b/crates/ra_assists/src/assists/split_import.rs index 2c1edddb9..19d429daf 100644 --- a/crates/ra_assists/src/assists/split_import.rs +++ b/crates/ra_assists/src/assists/split_import.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::iter::successors; use hir::db::HirDatabase; diff --git a/crates/ra_assists/src/ast_editor.rs b/crates/ra_assists/src/ast_editor.rs index 72c8c478a..2de71a0cb 100644 --- a/crates/ra_assists/src/ast_editor.rs +++ b/crates/ra_assists/src/ast_editor.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::{iter, ops::RangeInclusive}; use arrayvec::ArrayVec; diff --git a/crates/ra_assists/src/marks.rs b/crates/ra_assists/src/marks.rs index a29f9f658..c20e4db9e 100644 --- a/crates/ra_assists/src/marks.rs +++ b/crates/ra_assists/src/marks.rs @@ -1,3 +1,5 @@ +//! See test_utils/src/marks.rs + test_utils::marks!( introduce_var_in_comment_is_not_applicable test_introduce_var_expr_stmt -- cgit v1.2.3