-
Couldn't load subscription status.
- Fork 13.9k
Closed
Closed
Copy link
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`
Description
Can we add a new
StableLintExpectationIdtype so we can statically prevent theUnstablecase? Then we'd haveenum LintExpectationId { Unstable { attr_id, lint_index }, Stable(StableLintExpectationId) }, would be a slight pain to rewrite but mostly mechanical.
Might make sense to do it for the return type of
normalize()too so we don't accidentally hash theattr_id; that seems worse since it will only invalidate the incremental cache but not be obvious that it's a bug.
Originally posted by @jyn514 in #101620 (comment)
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.F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`