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
We can't simply emit the desugared, expanded version of the requirements
because there's no way to pretty-print the type `some ~Copyable` when
the `~Copyable`'s get replaced with the absence of `Copyable`. We'd be
left with just `some _` or need to invent a new top type so we can write
`some Top`.
Thus, it's best to simply reverse the expansion of default requirements.
This patch introduces a `collapseDefaultRequirements` that reverses what
`expandDefaultRequirements` does in `RequirementLowering`. It eliminates
all automatically inferred `Copyable` requirements and puts back the
`~Copyable` into the requirements list just before printing.
0 commit comments