mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
e5e3c25df2
rustdoc ICE fix: When collecting `Deref` impls with their targets, skip the negative ones
rustdoc assumed every `Deref` impl has an associated `Target` type, but negative impls (e.g. `impl !Deref for T {}`) have none.
Skip them in both the trait-impl collection pass and the HTML render pass to avoid panicking on the missing `Target`.
Closes rust-lang/rust#128801.