Files
rust/tests/rustdoc-html
bors c188565812 Auto merge of #159623 - camelid:good-impls, r=notriddle,GuillaumeGomez
rustdoc: Only build extern trait impls if needed



or, finally remove the `BadImplStripper`!

Building inlined impls is expensive, and most of them end up being
unneeded and stripped later in this function. So we should filter them
ahead of time. This requires inlining external auto traits when we
construct auto impls, since this no longer happens as a side effect.

We inline external impls when they are
* for generics (i.e., blanket impls)
* for primitive types (probably this should be handled below really)
* for a type (inlined) in the current crate
* of a trait (inlined) in the current crate
* of `Deref`
These rules are based on the existing filtering rules that are applied
after building the inlined impls.

After doing the filtering ahead of time, we can remove the downstream
filtering. Thus, we can finally remove `BadImplStripper` and unused
deref-following logic. It appears that all this `Deref` logic was pointless
in the first place since following derefs already happens elsewhere in
rustdoc, where it is actually needed.
2026-07-22 09:55:03 +00:00
..
2026-07-13 10:54:53 +02:00
…
2026-06-12 19:11:22 -04:00
2026-04-01 23:05:42 +01:00
2026-07-13 10:54:53 +02:00
…
2026-02-24 11:41:26 -05:00
2026-07-13 10:54:53 +02:00
2026-07-13 10:54:53 +02:00
2026-06-07 11:06:19 +03:00
…
…
…
…
2026-06-07 13:58:33 -04:00
…
…
…
…
2026-07-13 10:54:53 +02:00
…
…
…
…