aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_impl
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-01-22 13:55:05 +0000
committerJeremy Kolb <[email protected]>2019-01-22 13:55:05 +0000
commitb5404514834a27c682dc22d86bc5585c0cae3076 (patch)
tree38c6f5d9abb55d335894a69e2db3f6df31573dcf /crates/ra_hir/src/code_model_impl
parentb77d780f0e9e7902695b949a25588fcb66bb5982 (diff)
Move docs to Function
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r--crates/ra_hir/src/code_model_impl/function.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs
index c848f7a82..c68c6bfbf 100644
--- a/crates/ra_hir/src/code_model_impl/function.rs
+++ b/crates/ra_hir/src/code_model_impl/function.rs
@@ -2,7 +2,7 @@ mod scope;
2 2
3use std::sync::Arc; 3use std::sync::Arc;
4 4
5use ra_syntax::{TreeArc, ast::{self, NameOwner, DocCommentsOwner}}; 5use ra_syntax::{TreeArc, ast::{self, NameOwner}};
6 6
7use crate::{ 7use crate::{
8 DefId, HirDatabase, Name, AsName, Function, FnSignature, Module, 8 DefId, HirDatabase, Name, AsName, Function, FnSignature, Module,
@@ -73,14 +73,11 @@ impl FnSignature {
73 TypeRef::unit() 73 TypeRef::unit()
74 }; 74 };
75 75
76 let comments = node.doc_comment_text();
77
78 let sig = FnSignature { 76 let sig = FnSignature {
79 name, 77 name,
80 params, 78 params,
81 ret_type, 79 ret_type,
82 has_self_param, 80 has_self_param,
83 documentation: comments,
84 }; 81 };
85 Arc::new(sig) 82 Arc::new(sig)
86 } 83 }