Minor docs improvement

This commit is contained in:
Lukas Wirth 2025-01-16 11:05:20 +01:00
parent 71f1c4470d
commit 24e1db2f0c
2 changed files with 17 additions and 16 deletions

View file

@ -4855,6 +4855,7 @@ impl Type {
self.normalize_trait_assoc_type(db, &[], iterator_item.into())
}
/// Resolves the projection `<Self as IntoIterator>::IntoIter` and returns the resulting type
pub fn into_iterator_iter(self, db: &dyn HirDatabase) -> Option<Type> {
let trait_ = db.lang_item(self.env.krate, LangItem::IntoIterIntoIter).and_then(|it| {
let into_iter_fn = it.as_function()?;