mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Merge #1937
1937: Added test for check doc strings in directory crates/ r=andreevlex a=andreevlex #1856 Co-authored-by: Alexander Andreev <andreevlex.as@gmail.com>
This commit is contained in:
commit
ebfba46112
170 changed files with 413 additions and 29 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_db::FileRange;
|
use ra_db::FileRange;
|
||||||
use ra_fmt::{leading_indent, reindent};
|
use ra_fmt::{leading_indent, reindent};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, AstNode, AttrsOwner},
|
ast::{self, AstNode, AttrsOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{db::HirDatabase, HirDisplay, Ty};
|
use hir::{db::HirDatabase, HirDisplay, Ty};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, AstNode, LetStmt, NameOwner},
|
ast::{self, AstNode, LetStmt, NameOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use format_buf::format;
|
use format_buf::format;
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use join_to_string::join;
|
use join_to_string::join;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{db::HirDatabase, HasSource};
|
use hir::{db::HirDatabase, HasSource};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, edit, make, AstNode, NameOwner},
|
ast::{self, edit, make, AstNode, NameOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{self, db::HirDatabase};
|
use hir::{self, db::HirDatabase};
|
||||||
use ra_text_edit::TextEditBuilder;
|
use ra_text_edit::TextEditBuilder;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, NameOwner, VisibilityOwner},
|
ast::{self, NameOwner, VisibilityOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::iter;
|
use std::iter;
|
||||||
|
|
||||||
use hir::{db::HirDatabase, Adt, HasSource};
|
use hir::{db::HirDatabase, Adt, HasSource};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::ast::{AstNode, BinExpr, BinOp};
|
use ra_syntax::ast::{AstNode, BinExpr, BinOp};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{algo::non_trivia_sibling, Direction, T};
|
use ra_syntax::{algo::non_trivia_sibling, Direction, T};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, AstNode, AstToken},
|
ast::{self, AstNode, AstToken},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use format_buf::format;
|
use format_buf::format;
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{Assist, AssistCtx, AssistId, TextRange, TextUnit};
|
use crate::{Assist, AssistCtx, AssistId, TextRange, TextUnit};
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::ast::{AstNode, MatchArm};
|
use ra_syntax::ast::{AstNode, MatchArm};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, edit, make, AstNode, NameOwner, TypeBoundsOwner},
|
ast::{self, edit, make, AstNode, NameOwner, TypeBoundsOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast,
|
ast,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{ast::AstNode, ast::Literal, TextRange, TextUnit};
|
use ra_syntax::{ast::AstNode, ast::Literal, TextRange, TextUnit};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{Assist, AssistCtx, AssistId};
|
use crate::{Assist, AssistCtx, AssistId};
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use format_buf::format;
|
use format_buf::format;
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
use ra_fmt::extract_trivial_expression;
|
use ra_fmt::extract_trivial_expression;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::iter::successors;
|
use std::iter::successors;
|
||||||
|
|
||||||
use hir::db::HirDatabase;
|
use hir::db::HirDatabase;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! See test_utils/src/marks.rs
|
||||||
|
|
||||||
test_utils::marks!(
|
test_utils::marks!(
|
||||||
introduce_var_in_comment_is_not_applicable
|
introduce_var_in_comment_is_not_applicable
|
||||||
test_introduce_var_expr_stmt
|
test_introduce_var_expr_stmt
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{collections::HashSet, error::Error, path::Path};
|
use std::{collections::HashSet, error::Error, path::Path};
|
||||||
|
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{collections::HashSet, fmt::Write, path::Path, time::Instant};
|
use std::{collections::HashSet, fmt::Write, path::Path, time::Instant};
|
||||||
|
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
pub const GLOBAL_HELP: &str = "ra-cli
|
pub const GLOBAL_HELP: &str = "ra-cli
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
mod analysis_stats;
|
mod analysis_stats;
|
||||||
mod analysis_bench;
|
mod analysis_bench;
|
||||||
mod help;
|
mod help;
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
/// This module specifies the input to rust-analyzer. In some sense, this is
|
//! This module specifies the input to rust-analyzer. In some sense, this is
|
||||||
/// **the** most important module, because all other fancy stuff is strictly
|
//! **the** most important module, because all other fancy stuff is strictly
|
||||||
/// derived from this input.
|
//! derived from this input.
|
||||||
///
|
//!
|
||||||
/// Note that neither this module, nor any other part of the analyzer's core do
|
//! Note that neither this module, nor any other part of the analyzer's core do
|
||||||
/// actual IO. See `vfs` and `project_model` in the `ra_lsp_server` crate for how
|
//! actual IO. See `vfs` and `project_model` in the `ra_lsp_server` crate for how
|
||||||
/// actual IO is done and lowered to input.
|
//! actual IO is done and lowered to input.
|
||||||
|
|
||||||
use relative_path::{RelativePath, RelativePathBuf};
|
use relative_path::{RelativePath, RelativePathBuf};
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
pub(crate) mod src;
|
pub(crate) mod src;
|
||||||
pub(crate) mod docs;
|
pub(crate) mod docs;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_syntax::ast;
|
use ra_syntax::ast;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{self, AstNode},
|
ast::{self, AstNode},
|
||||||
SyntaxNode,
|
SyntaxNode,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_db::{salsa, SourceDatabase};
|
use ra_db::{salsa, SourceDatabase};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{any::Any, fmt};
|
use std::{any::Any, fmt};
|
||||||
|
|
||||||
use ra_syntax::{ast, AstNode, AstPtr, SyntaxNode, SyntaxNodePtr, TextRange};
|
use ra_syntax::{ast, AstNode, AstPtr, SyntaxNode, SyntaxNodePtr, TextRange};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub enum Either<A, B> {
|
pub enum Either<A, B> {
|
||||||
A(A),
|
A(A),
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
pub(crate) mod lower;
|
pub(crate) mod lower;
|
||||||
pub(crate) mod scope;
|
pub(crate) mod scope;
|
||||||
pub(crate) mod validation;
|
pub(crate) mod validation;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_arena::Arena;
|
use ra_arena::Arena;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
ast::{
|
ast::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_arena::{impl_arena_id, Arena, RawId};
|
use ra_arena::{impl_arena_id, Arena, RawId};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_syntax::ast;
|
use ra_syntax::ast;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::{FileId, FilePosition};
|
use ra_db::{FileId, FilePosition};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::find_node_at_offset,
|
algo::find_node_at_offset,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
hash::{Hash, Hasher},
|
hash::{Hash, Hasher},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#![recursion_limit = "512"]
|
|
||||||
|
|
||||||
//! HIR (previously known as descriptors) provides a high-level object oriented
|
//! HIR (previously known as descriptors) provides a high-level object oriented
|
||||||
//! access to Rust code.
|
//! access to Rust code.
|
||||||
//!
|
//!
|
||||||
|
@ -7,6 +5,8 @@
|
||||||
//! to a particular crate instance. That is, it has cfg flags and features
|
//! to a particular crate instance. That is, it has cfg flags and features
|
||||||
//! applied. So, the relation between syntax and HIR is many-to-one.
|
//! applied. So, the relation between syntax and HIR is many-to-one.
|
||||||
|
|
||||||
|
#![recursion_limit = "512"]
|
||||||
|
|
||||||
macro_rules! impl_froms {
|
macro_rules! impl_froms {
|
||||||
($e:ident: $($v:ident $(($($sv:ident),*))?),*) => {
|
($e:ident: $($v:ident $(($($sv:ident),*))?),*) => {
|
||||||
$(
|
$(
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! See test_utils/src/marks.rs
|
||||||
|
|
||||||
test_utils::marks!(
|
test_utils::marks!(
|
||||||
bogus_paths
|
bogus_paths
|
||||||
name_res_works_for_broken_modules
|
name_res_works_for_broken_modules
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{panic, sync::Arc};
|
use std::{panic, sync::Arc};
|
||||||
|
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use ra_syntax::{ast, SmolStr};
|
use ra_syntax::{ast, SmolStr};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::FileId;
|
use ra_db::FileId;
|
||||||
use ra_syntax::{ast, SmolStr};
|
use ra_syntax::{ast, SmolStr};
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{MacroDef, ModuleDef};
|
use crate::{MacroDef, ModuleDef};
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{ops::Index, sync::Arc};
|
use std::{ops::Index, sync::Arc};
|
||||||
|
|
||||||
use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId};
|
use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{iter, sync::Arc};
|
use std::{iter, sync::Arc};
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/// Lookup hir elements using positions in the source code. This is a lossy
|
//! Lookup hir elements using positions in the source code. This is a lossy
|
||||||
/// transformation: in general, a single source might correspond to several
|
//! transformation: in general, a single source might correspond to several
|
||||||
/// modules, functions, etc, due to macros, cfgs and `#[path=]` attributes on
|
//! modules, functions, etc, due to macros, cfgs and `#[path=]` attributes on
|
||||||
/// modules.
|
//! modules.
|
||||||
///
|
//!
|
||||||
/// So, this modules should not be used during hir construction, it exists
|
//! So, this modules should not be used during hir construction, it exists
|
||||||
/// purely for "IDE needs".
|
//! purely for "IDE needs".
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_db::FileId;
|
use ra_db::FileId;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
hash::{Hash, Hasher},
|
hash::{Hash, Hasher},
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use crate::db::HirDatabase;
|
use crate::db::HirDatabase;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use super::{InferTy, Ty, TypeCtor};
|
use super::{InferTy, Ty, TypeCtor};
|
||||||
use crate::{
|
use crate::{
|
||||||
expr::{BinaryOp, CmpOp},
|
expr::{BinaryOp, CmpOp},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
|
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::{FilePosition, FileRange};
|
use ra_db::{FilePosition, FileRange};
|
||||||
|
|
||||||
use crate::{db::RootDatabase, SourceChange, SourceFileEdit};
|
use crate::{db::RootDatabase, SourceChange, SourceFileEdit};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::find_node_at_offset,
|
algo::find_node_at_offset,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{fmt, sync::Arc, time};
|
use std::{fmt, sync::Arc, time};
|
||||||
|
|
||||||
use ra_db::{
|
use ra_db::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
mod completion_item;
|
mod completion_item;
|
||||||
mod completion_context;
|
mod completion_context;
|
||||||
mod presentation;
|
mod presentation;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{Adt, Ty, TypeCtor};
|
use hir::{Adt, Ty, TypeCtor};
|
||||||
|
|
||||||
use crate::completion::completion_item::CompletionKind;
|
use crate::completion::completion_item::CompletionKind;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::visit::{visitor_ctx, VisitorCtx},
|
algo::visit::{visitor_ctx, VisitorCtx},
|
||||||
ast, AstNode,
|
ast, AstNode,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::visit::{visitor, Visitor},
|
algo::visit::{visitor, Visitor},
|
||||||
ast::{self, LoopBodyOwner},
|
ast::{self, LoopBodyOwner},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::completion::{CompletionContext, Completions};
|
use crate::completion::{CompletionContext, Completions};
|
||||||
|
|
||||||
pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) {
|
pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{Adt, Either, PathResolution};
|
use hir::{Adt, Either, PathResolution};
|
||||||
use ra_syntax::AstNode;
|
use ra_syntax::AstNode;
|
||||||
use test_utils::tested_by;
|
use test_utils::tested_by;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::completion::{CompletionContext, Completions};
|
use crate::completion::{CompletionContext, Completions};
|
||||||
|
|
||||||
/// Completes constats and paths in patterns.
|
/// Completes constats and paths in patterns.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
completion::{
|
completion::{
|
||||||
completion_context::CompletionContext,
|
completion_context::CompletionContext,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::Substs;
|
use hir::Substs;
|
||||||
|
|
||||||
use crate::completion::{CompletionContext, Completions};
|
use crate::completion::{CompletionContext, Completions};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::Substs;
|
use hir::Substs;
|
||||||
|
|
||||||
use crate::completion::{CompletionContext, Completions};
|
use crate::completion::{CompletionContext, Completions};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_assists::auto_import_text_edit;
|
use ra_assists::auto_import_text_edit;
|
||||||
use ra_syntax::{ast, AstNode, SmolStr};
|
use ra_syntax::{ast, AstNode, SmolStr};
|
||||||
use ra_text_edit::TextEditBuilder;
|
use ra_text_edit::TextEditBuilder;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::completion::{
|
use crate::completion::{
|
||||||
completion_item::Builder, CompletionContext, CompletionItem, CompletionItemKind,
|
completion_item::Builder, CompletionContext, CompletionItem, CompletionItemKind,
|
||||||
CompletionKind, Completions,
|
CompletionKind, Completions,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::{find_covering_element, find_node_at_offset},
|
algo::{find_covering_element, find_node_at_offset},
|
||||||
ast, AstNode, Parse, SourceFile,
|
ast, AstNode, Parse, SourceFile,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use hir::Documentation;
|
use hir::Documentation;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
//! This modules takes care of rendering various definitions as completion items.
|
//! This modules takes care of rendering various definitions as completion items.
|
||||||
|
|
||||||
use hir::{Docs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk};
|
use hir::{Docs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk};
|
||||||
use join_to_string::join;
|
use join_to_string::join;
|
||||||
use ra_syntax::ast::NameOwner;
|
use ra_syntax::ast::NameOwner;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_db::{
|
use ra_db::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
|
|
||||||
use hir::diagnostics::{AstDiagnostic, Diagnostic as _, DiagnosticSink};
|
use hir::diagnostics::{AstDiagnostic, Diagnostic as _, DiagnosticSink};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::fmt::{self, Display};
|
use std::fmt::{self, Display};
|
||||||
|
|
||||||
use hir::{Docs, Documentation, HasSource};
|
use hir::{Docs, Documentation, HasSource};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{AssocItem, FieldSource, HasSource, ModuleSource};
|
use hir::{AssocItem, FieldSource, HasSource, ModuleSource};
|
||||||
use ra_db::{FileId, SourceDatabase};
|
use ra_db::{FileId, SourceDatabase};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use format_buf::format;
|
use format_buf::format;
|
||||||
use ra_syntax::ast::{self, AstNode, NameOwner, TypeAscriptionOwner, VisibilityOwner};
|
use ra_syntax::ast::{self, AstNode, NameOwner, TypeAscriptionOwner, VisibilityOwner};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::TextRange;
|
use crate::TextRange;
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::find_covering_element,
|
algo::find_covering_element,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
||||||
/// Feature flags hold fine-grained toggles for all *user-visible* features of
|
/// Feature flags hold fine-grained toggles for all *user-visible* features of
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use rustc_hash::FxHashSet;
|
use rustc_hash::FxHashSet;
|
||||||
|
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::{FileId, SourceDatabase};
|
use ra_db::{FileId, SourceDatabase};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
algo::{
|
algo::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{ast, AstNode};
|
use ra_syntax::{ast, AstNode};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{Adt, HasSource, HirDisplay};
|
use hir::{Adt, HasSource, HirDisplay};
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{db::HirDatabase, ApplicationTy, FromSource, Ty, TypeCtor};
|
use hir::{db::HirDatabase, ApplicationTy, FromSource, Ty, TypeCtor};
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{algo::find_node_at_offset, ast, AstNode};
|
use ra_syntax::{algo::find_node_at_offset, ast, AstNode};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{db::RootDatabase, FileId};
|
use crate::{db::RootDatabase, FileId};
|
||||||
use hir::{HirDisplay, SourceAnalyzer, Ty};
|
use hir::{HirDisplay, SourceAnalyzer, Ty};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use ra_fmt::{compute_ws, extract_trivial_expression};
|
use ra_fmt::{compute_ws, extract_trivial_expression};
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::TextUnit;
|
use crate::TextUnit;
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
use superslice::Ext;
|
use superslice::Ext;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{line_index::Utf16Char, LineCol, LineIndex};
|
use crate::{line_index::Utf16Char, LineCol, LineIndex};
|
||||||
use ra_syntax::{TextRange, TextUnit};
|
use ra_syntax::{TextRange, TextUnit};
|
||||||
use ra_text_edit::{AtomTextEdit, TextEdit};
|
use ra_text_edit::{AtomTextEdit, TextEdit};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! See test_utils/src/marks.rs
|
||||||
|
|
||||||
test_utils::marks!(
|
test_utils::marks!(
|
||||||
inserts_parens_for_function_calls
|
inserts_parens_for_function_calls
|
||||||
goto_definition_works_for_macros
|
goto_definition_works_for_macros
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{ast::AstNode, SourceFile, SyntaxKind, TextUnit, T};
|
use ra_syntax::{ast::AstNode, SourceFile, SyntaxKind, TextUnit, T};
|
||||||
|
|
||||||
pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> {
|
pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use relative_path::RelativePathBuf;
|
use relative_path::RelativePathBuf;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::Either;
|
use hir::Either;
|
||||||
use ra_syntax::{ast, AstNode, AstPtr};
|
use ra_syntax::{ast, AstNode, AstPtr};
|
||||||
use test_utils::tested_by;
|
use test_utils::tested_by;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::{CrateId, FileId, FilePosition};
|
use ra_db::{CrateId, FileId, FilePosition};
|
||||||
|
|
||||||
use crate::{db::RootDatabase, NavigationTarget};
|
use crate::{db::RootDatabase, NavigationTarget};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use hir::{Either, ModuleSource};
|
use hir::{Either, ModuleSource};
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{algo::find_node_at_offset, ast, AstNode, SourceFile, SyntaxNode};
|
use ra_syntax::{algo::find_node_at_offset, ast, AstNode, SourceFile, SyntaxNode};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use std::{fmt, iter::FromIterator, sync::Arc};
|
use std::{fmt, iter::FromIterator, sync::Arc};
|
||||||
|
|
||||||
use hir::MacroFile;
|
use hir::MacroFile;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use rustc_hash::{FxHashMap, FxHashSet};
|
use rustc_hash::{FxHashMap, FxHashSet};
|
||||||
|
|
||||||
use hir::{Mutability, Ty};
|
use hir::{Mutability, Ty};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::db::RootDatabase;
|
use crate::db::RootDatabase;
|
||||||
use ra_db::SourceDatabase;
|
use ra_db::SourceDatabase;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_syntax::{SourceFile, TextUnit};
|
use ra_syntax::{SourceFile, TextUnit};
|
||||||
use ra_text_edit::TextEdit;
|
use ra_text_edit::TextEdit;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use ra_db::{FilePosition, SourceDatabase};
|
use ra_db::{FilePosition, SourceDatabase};
|
||||||
use ra_fmt::leading_indent;
|
use ra_fmt::leading_indent;
|
||||||
use ra_syntax::{
|
use ra_syntax::{
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue