We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96e5412 + 7283163 commit f04daf6Copy full SHA for f04daf6
crates/ide/src/inlay_hints.rs
@@ -225,8 +225,10 @@ fn hint_iterator(
225
}
226
let iter_trait = famous_defs.core_iter_Iterator()?;
227
let iter_mod = famous_defs.core_iter()?;
228
- // assert this struct comes from `core::iter`
+
229
+ // Assert that this struct comes from `core::iter`.
230
iter_mod.visibility_of(db, &strukt.into()).filter(|&vis| vis == hir::Visibility::Public)?;
231
232
if ty.impls_trait(db, iter_trait, &[]) {
233
let assoc_type_item = iter_trait.items(db).into_iter().find_map(|item| match item {
234
hir::AssocItem::TypeAlias(alias) if alias.name(db) == known::Item => Some(alias),
0 commit comments