rustdoc: fixed messed-up rustdoc auto trait impls

Before:

    impl<T, U> UnwindSafe for (T, ...) where
        T: UnwindSafe,
        U: UnwindSafe,

After:

    impl<T> UnwindSafe for (T, ...) where
        T: UnwindSafe,
This commit is contained in:
Michael Howell 2022-06-08 19:51:54 -07:00
parent 6950f144cf
commit 85b0c2ffbb
3 changed files with 6 additions and 6 deletions

View file

@ -960,7 +960,7 @@ mod prim_tuple {}
// Required to make auto trait impls render.
// See /src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
#[doc(hidden)]
impl<T, U> (T, U) {}
impl<T> (T,) {}
// Fake impl that's only really used for docs.
#[cfg(doc)]