File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ fn signature_help_for_call(
129
129
hir:: CallableKind :: Function ( func) => {
130
130
res. doc = func. docs ( db) . map ( |it| it. into ( ) ) ;
131
131
format_to ! ( res. signature, "fn {}" , func. name( db) ) ;
132
- fn_params = Some ( match func . self_param ( db) {
132
+ fn_params = Some ( match callable . receiver_param ( db) {
133
133
Some ( _self) => func. params_without_self ( db) ,
134
134
None => func. assoc_fn_params ( db) ,
135
135
} ) ;
@@ -1142,4 +1142,20 @@ fn f() {
1142
1142
"# ] ] ,
1143
1143
) ;
1144
1144
}
1145
+
1146
+ #[ test]
1147
+ fn fully_qualified_syntax ( ) {
1148
+ check (
1149
+ r#"
1150
+ fn f() {
1151
+ trait A { fn foo(&self, other: Self); }
1152
+ A::foo(&self$0, other);
1153
+ }
1154
+ "# ,
1155
+ expect ! [ [ r#"
1156
+ fn foo(self: &Self, other: Self)
1157
+ ^^^^^^^^^^^ -----------
1158
+ "# ] ] ,
1159
+ ) ;
1160
+ }
1145
1161
}
You can’t perform that action at this time.
0 commit comments