1
Fork 0

rustdoc-search: add unbox flag to Result aliases

Fixes #139665
This commit is contained in:
Michael Howell 2025-04-11 11:35:10 -07:00
parent 71b68da1bd
commit e013cf8afc
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() });
}