aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion
diff options
context:
space:
mode:
authorKevin DeLorey <[email protected]>2020-02-11 13:31:39 +0000
committerKevin DeLorey <[email protected]>2020-02-11 13:31:39 +0000
commitd7e36c3dd2b601401feb86bef3c0f8bb62fb4331 (patch)
tree2ef46c232b9fcfba52eb7da7aff6730509e3ec43 /crates/ra_ide/src/completion
parentb4429a9d64759f4aee3cb48cb938da021a24b7b5 (diff)
Removed docs from private method.
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r--crates/ra_ide/src/completion/complete_trait_impl.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_ide/src/completion/complete_trait_impl.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs
index c0e83b124..f6f4a99c5 100644
--- a/crates/ra_ide/src/completion/complete_trait_impl.rs
+++ b/crates/ra_ide/src/completion/complete_trait_impl.rs
@@ -125,14 +125,6 @@ fn add_const_impl(
125 .add_to(acc); 125 .add_to(acc);
126} 126}
127 127
128/// Using a `ConstDef` `SyntaxNode` to create a `String` that represents
129/// the output of the magic completion.
130///
131/// There isn't a whole lot of information about a `hir::Const` or
132/// `ast::ConstDef` to prove useful when creating the magic completion for the
133/// associated constant. This method simply copies the syntax tree of the
134/// target trait up until a `;` or `=` is found. From the sliced syntax tree
135/// it formulates the magic completion string.
136fn make_const_compl_syntax(const_: &ast::ConstDef) -> String { 128fn make_const_compl_syntax(const_: &ast::ConstDef) -> String {
137 let const_ = edit::strip_attrs_and_docs(const_); 129 let const_ = edit::strip_attrs_and_docs(const_);
138 130