rustdoc: extend #[doc(tuple_variadic)] to fn pointers

The attribute is also renamed `fake_variadic`.
This commit is contained in:
Michael Howell 2022-06-16 09:50:57 -07:00
parent 263edd43c5
commit 1169832f2f
21 changed files with 61 additions and 42 deletions

View file

@ -574,7 +574,7 @@ impl FromWithTcx<clean::Impl> for Impl {
let trait_ = trait_.map(|path| clean::Type::Path { path }.into_tcx(tcx));
// FIXME: use something like ImplKind in JSON?
let (synthetic, blanket_impl) = match kind {
clean::ImplKind::Normal | clean::ImplKind::TupleVaradic => (false, None),
clean::ImplKind::Normal | clean::ImplKind::FakeVaradic => (false, None),
clean::ImplKind::Auto => (true, None),
clean::ImplKind::Blanket(ty) => (false, Some(*ty)),
};