You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #143559 - obi1kenobi:pg/allow_unsized, r=<try>
Show whether `?Sized` parameters are actually `Sized`
A mostly-working, "some polish still required" attempt at fixing #143197
- Add a new `allow_unsized: bool` field to `GenericParamDefKind::Type`.
- Expose that field as-is to rustdoc JSON, without tampering with `?Sized` clauses there.
- Suppress `?Sized` from HTML where `Sized` is implied.
I haven't figured out a good way to suppress `?Sized` from `impl Trait` in function parameters in HTML yet. The synthetic generics data doesn't seem to be "nearby" so more refactoring might be needed. I included a failing test case to remind me of this.
r? fmease
0 commit comments