-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
This seems to contain all the flags in TypeFlags
. If I'm guessing right, the flags that used to not be in here, all turned into queries? So they're now cached as queries, instead of by mutating Ty
itself?
rust/src/librustc_middle/ty/mod.rs
Lines 603 to 624 in af89eb5
/// Flags representing the nominal content of a type, | |
/// computed by FlagsComputation. If you add a new nominal | |
/// flag, it should be added here too. | |
const NOMINAL_FLAGS = TypeFlags::HAS_TY_PARAM.bits | |
| TypeFlags::HAS_RE_PARAM.bits | |
| TypeFlags::HAS_CT_PARAM.bits | |
| TypeFlags::HAS_TY_INFER.bits | |
| TypeFlags::HAS_RE_INFER.bits | |
| TypeFlags::HAS_CT_INFER.bits | |
| TypeFlags::HAS_TY_PLACEHOLDER.bits | |
| TypeFlags::HAS_RE_PLACEHOLDER.bits | |
| TypeFlags::HAS_CT_PLACEHOLDER.bits | |
| TypeFlags::HAS_FREE_LOCAL_REGIONS.bits | |
| TypeFlags::HAS_TY_PROJECTION.bits | |
| TypeFlags::HAS_TY_OPAQUE.bits | |
| TypeFlags::HAS_CT_PROJECTION.bits | |
| TypeFlags::KEEP_IN_LOCAL_TCX.bits | |
| TypeFlags::HAS_TY_ERR.bits | |
| TypeFlags::HAS_FREE_REGIONS.bits | |
| TypeFlags::HAS_RE_LATE_BOUND.bits | |
| TypeFlags::HAS_RE_ERASED.bits | |
| TypeFlags::STILL_FURTHER_SPECIALIZABLE.bits; |
Metadata
Metadata
Assignees
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.