Default implementation of CrateNum encoding/decoding should be disabled #86540
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The default implementation for
CrateNum
encoding and decoding should be disabled because the numeric value of aCrateNum
can only be meaningfully interpreted giving the specific context of decoding (which the default decoder does not have access to). We already do something similar forDefIndex
because it helps prevent bugs where decoding seems to work but really provides wrong values.I already tried to make this change as part of #86368 (see 3eaeb92) but it turns out there's still one user of the default implementation related to
-Zno-link
.The text was updated successfully, but these errors were encountered: