Skip to content

Refactor various "type testing" traits to share code #20298

Closed
@nikomatsakis

Description

@nikomatsakis

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 like FnSig and Rc<T>. It'd be nice to use a setup like TypeFoldable instead to save code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions