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_ide_api/src/completion/complete_dot.rs | 2 ++ crates/ra_ide_api/src/completion/complete_fn_param.rs | 2 ++ crates/ra_ide_api/src/completion/complete_keyword.rs | 2 ++ crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs | 2 ++ crates/ra_ide_api/src/completion/complete_path.rs | 2 ++ crates/ra_ide_api/src/completion/complete_pattern.rs | 2 ++ crates/ra_ide_api/src/completion/complete_postfix.rs | 2 ++ crates/ra_ide_api/src/completion/complete_record_literal.rs | 2 ++ crates/ra_ide_api/src/completion/complete_record_pattern.rs | 2 ++ crates/ra_ide_api/src/completion/complete_scope.rs | 2 ++ crates/ra_ide_api/src/completion/complete_snippet.rs | 2 ++ crates/ra_ide_api/src/completion/completion_context.rs | 2 ++ crates/ra_ide_api/src/completion/completion_item.rs | 2 ++ crates/ra_ide_api/src/completion/presentation.rs | 1 + 14 files changed, 27 insertions(+) (limited to 'crates/ra_ide_api/src/completion') diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs index 9e64c8659..28c8324d0 100644 --- a/crates/ra_ide_api/src/completion/complete_dot.rs +++ b/crates/ra_ide_api/src/completion/complete_dot.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::{Adt, Ty, TypeCtor}; use crate::completion::completion_item::CompletionKind; diff --git a/crates/ra_ide_api/src/completion/complete_fn_param.rs b/crates/ra_ide_api/src/completion/complete_fn_param.rs index 6639b6fff..844a63f6c 100644 --- a/crates/ra_ide_api/src/completion/complete_fn_param.rs +++ b/crates/ra_ide_api/src/completion/complete_fn_param.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_syntax::{ algo::visit::{visitor_ctx, VisitorCtx}, ast, AstNode, diff --git a/crates/ra_ide_api/src/completion/complete_keyword.rs b/crates/ra_ide_api/src/completion/complete_keyword.rs index c527a9f63..3f121d45c 100644 --- a/crates/ra_ide_api/src/completion/complete_keyword.rs +++ b/crates/ra_ide_api/src/completion/complete_keyword.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_syntax::{ algo::visit::{visitor, Visitor}, ast::{self, LoopBodyOwner}, diff --git a/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs b/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs index 0cbe4abf7..d808b2357 100644 --- a/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs +++ b/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::completion::{CompletionContext, Completions}; pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) { diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index e9fec54d8..e01197fe4 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::{Adt, Either, PathResolution}; use ra_syntax::AstNode; use test_utils::tested_by; diff --git a/crates/ra_ide_api/src/completion/complete_pattern.rs b/crates/ra_ide_api/src/completion/complete_pattern.rs index c17b5b7ee..513ad6e5f 100644 --- a/crates/ra_ide_api/src/completion/complete_pattern.rs +++ b/crates/ra_ide_api/src/completion/complete_pattern.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::completion::{CompletionContext, Completions}; /// Completes constats and paths in patterns. diff --git a/crates/ra_ide_api/src/completion/complete_postfix.rs b/crates/ra_ide_api/src/completion/complete_postfix.rs index 3970d1af3..445a02676 100644 --- a/crates/ra_ide_api/src/completion/complete_postfix.rs +++ b/crates/ra_ide_api/src/completion/complete_postfix.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::{ completion::{ completion_context::CompletionContext, diff --git a/crates/ra_ide_api/src/completion/complete_record_literal.rs b/crates/ra_ide_api/src/completion/complete_record_literal.rs index ed4029964..4406695d5 100644 --- a/crates/ra_ide_api/src/completion/complete_record_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_record_literal.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::Substs; use crate::completion::{CompletionContext, Completions}; diff --git a/crates/ra_ide_api/src/completion/complete_record_pattern.rs b/crates/ra_ide_api/src/completion/complete_record_pattern.rs index 70716b3d6..d20fa796c 100644 --- a/crates/ra_ide_api/src/completion/complete_record_pattern.rs +++ b/crates/ra_ide_api/src/completion/complete_record_pattern.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use hir::Substs; use crate::completion::{CompletionContext, Completions}; diff --git a/crates/ra_ide_api/src/completion/complete_scope.rs b/crates/ra_ide_api/src/completion/complete_scope.rs index cb70a1f21..515a6285c 100644 --- a/crates/ra_ide_api/src/completion/complete_scope.rs +++ b/crates/ra_ide_api/src/completion/complete_scope.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_assists::auto_import_text_edit; use ra_syntax::{ast, AstNode, SmolStr}; use ra_text_edit::TextEditBuilder; diff --git a/crates/ra_ide_api/src/completion/complete_snippet.rs b/crates/ra_ide_api/src/completion/complete_snippet.rs index b06221c2a..2df79b6c3 100644 --- a/crates/ra_ide_api/src/completion/complete_snippet.rs +++ b/crates/ra_ide_api/src/completion/complete_snippet.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use crate::completion::{ completion_item::Builder, CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions, diff --git a/crates/ra_ide_api/src/completion/completion_context.rs b/crates/ra_ide_api/src/completion/completion_context.rs index 57542152f..e9ad06965 100644 --- a/crates/ra_ide_api/src/completion/completion_context.rs +++ b/crates/ra_ide_api/src/completion/completion_context.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_syntax::{ algo::{find_covering_element, find_node_at_offset}, ast, AstNode, Parse, SourceFile, diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index d787bb69e..b1f0390ec 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::fmt; use hir::Documentation; diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index b8aa433c1..48028a2f9 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs @@ -1,4 +1,5 @@ //! This modules takes care of rendering various definitions as completion items. + use hir::{Docs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk}; use join_to_string::join; use ra_syntax::ast::NameOwner; -- cgit v1.2.3