22//! ```no_run
33//! fn example/* <'0> */(a: &/* '0 */()) {}
44//! ```
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 } ;
66use itertools:: Itertools ;
7+ use span:: EditionedFileId ;
78use syntax:: {
89 ast:: { self , AstNode , HasGenericParams , HasName } ,
910 SyntaxToken ,
@@ -14,7 +15,9 @@ use crate::{InlayHint, InlayHintPosition, InlayHintsConfig, InlayKind, LifetimeE
1415
1516pub ( super ) fn hints (
1617 acc : & mut Vec < InlayHint > ,
18+ FamousDefs ( _, _) : & FamousDefs < ' _ , ' _ > ,
1719 config : & InlayHintsConfig ,
20+ _file_id : EditionedFileId ,
1821 func : ast:: Fn ,
1922) -> Option < ( ) > {
2023 if config. lifetime_elision_hints == LifetimeElisionHints :: Never {
@@ -29,6 +32,7 @@ pub(super) fn hints(
2932 position : InlayHintPosition :: After ,
3033 pad_left : false ,
3134 pad_right : true ,
35+ resolve_parent : None ,
3236 } ;
3337
3438 let param_list = func. param_list ( ) ?;
@@ -195,6 +199,7 @@ pub(super) fn hints(
195199 position : InlayHintPosition :: After ,
196200 pad_left : false ,
197201 pad_right : true ,
202+ resolve_parent : None ,
198203 } ) ;
199204 }
200205 ( None , allocated_lifetimes) => acc. push ( InlayHint {
@@ -205,6 +210,7 @@ pub(super) fn hints(
205210 position : InlayHintPosition :: After ,
206211 pad_left : false ,
207212 pad_right : false ,
213+ resolve_parent : None ,
208214 } ) ,
209215 }
210216 Some ( ( ) )
0 commit comments