aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin DeLorey <[email protected]>2020-02-11 15:48:26 +0000
committerKevin DeLorey <[email protected]>2020-02-11 15:48:26 +0000
commite664cd73e3f91086dc765fb5ec74ebec2daa8ffa (patch)
treecd31fe494cb6b54a58b13fc5252fd637fc5a6268
parent3aaf46afa13b6fcbfdc36d8eb0cce48196d824a7 (diff)
Removed doc comments entirely from the changes.
-rw-r--r--crates/ra_assists/src/utils.rs2
-rw-r--r--crates/ra_ide/src/completion/complete_trait_impl.rs39
2 files changed, 0 insertions, 41 deletions
diff --git a/crates/ra_assists/src/utils.rs b/crates/ra_assists/src/utils.rs
index 461f01536..1280a4fdc 100644
--- a/crates/ra_assists/src/utils.rs
+++ b/crates/ra_assists/src/utils.rs
@@ -9,8 +9,6 @@ use hir::db::HirDatabase;
9 9
10use rustc_hash::FxHashSet; 10use rustc_hash::FxHashSet;
11 11
12/// Generate a collection of associated items that are missing from a
13/// `impl Trait for` block.
14pub fn get_missing_impl_items( 12pub fn get_missing_impl_items(
15 db: &impl HirDatabase, 13 db: &impl HirDatabase,
16 analyzer: &hir::SourceAnalyzer, 14 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 cd3f016bf..bea3ce106 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::{
10 10
11use ra_assists::utils::get_missing_impl_items; 11use ra_assists::utils::get_missing_impl_items;
12 12
13/// Analyzes the specified `CompletionContext` and provides magic completions
14/// if the context falls within a `impl Trait for` block.
15///
16/// # Completion Activation
17/// The completion will activate when a user begins to type a function
18/// definition, an associated type, or an associated constant.
19///
20/// ### Functions
21/// ```ignore
22/// trait SomeTrait {
23/// fn foo(&self);
24/// }
25///
26/// impl SomeTrait for () {
27/// fn <|>
28/// }
29/// ```
30///
31/// ### Associated Types
32/// ```ignore
33/// trait SomeTrait {
34/// type SomeType;
35/// }
36///
37/// impl SomeTrait for () {
38/// type <|>
39/// }
40/// ```
41///
42/// ### Associated Constants
43/// ```ignore
44/// trait SomeTrait {
45/// const SOME_CONST: u16;
46/// }
47///
48/// impl SomeTrait for () {
49/// const <|>
50/// }
51/// ```
52pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) { 13pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {
53 // it is possible to have a parent `fn` and `impl` block. Ignore completion 14 // it is possible to have a parent `fn` and `impl` block. Ignore completion
54 // attempts from within a `fn` block. 15 // attempts from within a `fn` block.