File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ pub mod iter {
308
308
}
309
309
}
310
310
}
311
- pub(crate) mod collect {
311
+ pub(crate) mod collect {
312
312
pub trait IntoIterator {
313
313
type Item;
314
314
}
Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ fn hint_iterator(
211
211
ty : & Type ,
212
212
) -> Option < SmolStr > {
213
213
let db = sema. db ;
214
- let strukt = ty. as_adt ( ) ?;
214
+ let strukt = std:: iter:: successors ( Some ( ty. clone ( ) ) , |ty| ty. remove_ref ( ) )
215
+ . last ( )
216
+ . and_then ( |strukt| strukt. as_adt ( ) ) ?;
215
217
let krate = strukt. krate ( db) ?;
216
218
if krate. declaration_name ( db) . as_deref ( ) != Some ( "core" ) {
217
219
return None ;
@@ -1169,7 +1171,7 @@ fn main() {
1169
1171
InlayHint {
1170
1172
range: 175..225,
1171
1173
kind: ChainingHint,
1172
- label: "&mut Take<&mut MyIter >",
1174
+ label: "impl Iterator<Item = () >",
1173
1175
},
1174
1176
InlayHint {
1175
1177
range: 175..207,
You can’t perform that action at this time.
0 commit comments