In a cross-crate reexport of an impl Trait-accepting function, rustdoc formats it in a wrong way which is not even valid Rust.
Let crate1 be:
pub trait MyTrait {}
pub fn accepts_impl(_t: impl MyTrait) {}
Let crate2 be:
pub use crate1::{MyTrait, accepts_impl};
If we generate docs for crate2, we get this definition for the (re-exported) accepts_impl:
pub fn accepts_impl<impl MyTrait>(_t: impl MyTrait)
where
impl MyTrait: MyTrait,
I see some similarities with #60113 here.
Both issues still reproduce on stable 1.36.0 and nightly bc2e84c.
In a cross-crate reexport of an
impl Trait-accepting function, rustdoc formats it in a wrong way which is not even valid Rust.Let
crate1be:Let
crate2be:If we generate docs for
crate2, we get this definition for the (re-exported)accepts_impl:I see some similarities with #60113 here.
Both issues still reproduce on stable 1.36.0 and nightly bc2e84c.