Refactor various "type testing" traits to share code #20298
Labels
A-type-system
Area: Type system
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
There are various traits (
RegionEscape
,HasProjectionTypes
,ReferencesError
) that are useful for checking properties on all the types/regions reachable through a value. Right now they each have their own separate impls for things likeFnSig
andRc<T>
. It'd be nice to use a setup likeTypeFoldable
instead to save code.The text was updated successfully, but these errors were encountered: