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:
commit
e0f92bb53c
6 changed files with 41 additions and 0 deletions
|
@ -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() });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue