1
Fork 0

Rollup merge of #139688 - rust-lang:notriddle/io-result-unbox, r=GuillaumeGomez

rustdoc-search: add unbox flag to Result aliases

Fixes #139665
This commit is contained in:
Chris Denton 2025-04-12 21:05:30 +00:00 committed by GitHub
commit e0f92bb53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 41 additions and 0 deletions

View file

@ -1109,6 +1109,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
ItemKind::Trait(_, _, _, generics, _, items)
if generics.params.len() != 0
|| items.iter().any(|item| matches!(item.kind, AssocItemKind::Type)) => {}
ItemKind::TyAlias(_, _, generics) if generics.params.len() != 0 => {}
_ => {
self.dcx().emit_err(errors::DocSearchUnboxInvalid { span: meta.span() });
}