2
2
//! ```no_run
3
3
//! fn example/* <'0> */(a: &/* '0 */()) {}
4
4
//! ```
5
- use ide_db:: { syntax_helpers:: node_ext:: walk_ty, FxHashMap } ;
5
+ use ide_db:: { famous_defs :: FamousDefs , syntax_helpers:: node_ext:: walk_ty, FxHashMap } ;
6
6
use itertools:: Itertools ;
7
+ use span:: EditionedFileId ;
7
8
use syntax:: {
8
9
ast:: { self , AstNode , HasGenericParams , HasName } ,
9
10
SyntaxToken ,
@@ -14,7 +15,9 @@ use crate::{InlayHint, InlayHintPosition, InlayHintsConfig, InlayKind, LifetimeE
14
15
15
16
pub ( super ) fn hints (
16
17
acc : & mut Vec < InlayHint > ,
18
+ FamousDefs ( _, _) : & FamousDefs < ' _ , ' _ > ,
17
19
config : & InlayHintsConfig ,
20
+ _file_id : EditionedFileId ,
18
21
func : ast:: Fn ,
19
22
) -> Option < ( ) > {
20
23
if config. lifetime_elision_hints == LifetimeElisionHints :: Never {
@@ -29,6 +32,7 @@ pub(super) fn hints(
29
32
position : InlayHintPosition :: After ,
30
33
pad_left : false ,
31
34
pad_right : true ,
35
+ resolve_parent : None ,
32
36
} ;
33
37
34
38
let param_list = func. param_list ( ) ?;
@@ -195,6 +199,7 @@ pub(super) fn hints(
195
199
position : InlayHintPosition :: After ,
196
200
pad_left : false ,
197
201
pad_right : true ,
202
+ resolve_parent : None ,
198
203
} ) ;
199
204
}
200
205
( None , allocated_lifetimes) => acc. push ( InlayHint {
@@ -205,6 +210,7 @@ pub(super) fn hints(
205
210
position : InlayHintPosition :: After ,
206
211
pad_left : false ,
207
212
pad_right : false ,
213
+ resolve_parent : None ,
208
214
} ) ,
209
215
}
210
216
Some ( ( ) )
0 commit comments