Make substs()
, input_types()
, etc on PolyTraitRef
preserve the binding level
#20664
Labels
A-type-system
Area: Type system
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
These accessors allow you to skip past the binder in a very lightweight way. This is a bad thing, since the binder is significant. We should refactor them away. While we're at it, it'd might be best if the internal field of a
Binder
was private. We would then add accesses for everyPolyFooBar
type for the fields ofFooBar
. These accessors would yield aBinder<T>
for those fields that may contain late-bound regions. I've been moving to this model gradually, but we should finish the job.The text was updated successfully, but these errors were encountered: