diff options
| author | Kevin DeLorey <2295721+kdelorey@users.noreply.github.com> | 2020-02-11 09:48:26 -0600 |
|---|---|---|
| committer | Kevin DeLorey <2295721+kdelorey@users.noreply.github.com> | 2020-02-11 09:48:26 -0600 |
| commit | e664cd73e3f91086dc765fb5ec74ebec2daa8ffa (patch) | |
| tree | cd31fe494cb6b54a58b13fc5252fd637fc5a6268 | |
| parent | 3aaf46afa13b6fcbfdc36d8eb0cce48196d824a7 (diff) | |
| download | rust-e664cd73e3f91086dc765fb5ec74ebec2daa8ffa.tar.gz rust-e664cd73e3f91086dc765fb5ec74ebec2daa8ffa.zip | |
Removed doc comments entirely from the changes.
| -rw-r--r-- | crates/ra_assists/src/utils.rs | 2 | ||||
| -rw-r--r-- | crates/ra_ide/src/completion/complete_trait_impl.rs | 39 |
2 files changed, 0 insertions, 41 deletions
diff --git a/crates/ra_assists/src/utils.rs b/crates/ra_assists/src/utils.rs index 461f01536e3..1280a4fdcae 100644 --- a/crates/ra_assists/src/utils.rs +++ b/crates/ra_assists/src/utils.rs @@ -9,8 +9,6 @@ use hir::db::HirDatabase; use rustc_hash::FxHashSet; -/// Generate a collection of associated items that are missing from a -/// `impl Trait for` block. pub fn get_missing_impl_items( db: &impl HirDatabase, analyzer: &hir::SourceAnalyzer, diff --git a/crates/ra_ide/src/completion/complete_trait_impl.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs index cd3f016bfab..bea3ce106dd 100644 --- a/crates/ra_ide/src/completion/complete_trait_impl.rs +++ b/crates/ra_ide/src/completion/complete_trait_impl.rs @@ -10,45 +10,6 @@ use ra_syntax::{ use ra_assists::utils::get_missing_impl_items; -/// Analyzes the specified `CompletionContext` and provides magic completions -/// if the context falls within a `impl Trait for` block. -/// -/// # Completion Activation -/// The completion will activate when a user begins to type a function -/// definition, an associated type, or an associated constant. -/// -/// ### Functions -/// ```ignore -/// trait SomeTrait { -/// fn foo(&self); -/// } -/// -/// impl SomeTrait for () { -/// fn <|> -/// } -/// ``` -/// -/// ### Associated Types -/// ```ignore -/// trait SomeTrait { -/// type SomeType; -/// } -/// -/// impl SomeTrait for () { -/// type <|> -/// } -/// ``` -/// -/// ### Associated Constants -/// ```ignore -/// trait SomeTrait { -/// const SOME_CONST: u16; -/// } -/// -/// impl SomeTrait for () { -/// const <|> -/// } -/// ``` pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) { // it is possible to have a parent `fn` and `impl` block. Ignore completion // attempts from within a `fn` block. |
