From d7e36c3dd2b601401feb86bef3c0f8bb62fb4331 Mon Sep 17 00:00:00 2001 From: Kevin DeLorey <2295721+kdelorey@users.noreply.github.com> Date: Tue, 11 Feb 2020 07:31:39 -0600 Subject: Removed docs from private method. --- crates/ra_ide/src/completion/complete_trait_impl.rs | 8 -------- 1 file changed, 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( .add_to(acc); } -/// Using a `ConstDef` `SyntaxNode` to create a `String` that represents -/// the output of the magic completion. -/// -/// There isn't a whole lot of information about a `hir::Const` or -/// `ast::ConstDef` to prove useful when creating the magic completion for the -/// associated constant. This method simply copies the syntax tree of the -/// target trait up until a `;` or `=` is found. From the sliced syntax tree -/// it formulates the magic completion string. fn make_const_compl_syntax(const_: &ast::ConstDef) -> String { let const_ = edit::strip_attrs_and_docs(const_); -- cgit v1.2.3