Fix Hack: Remove hasCheckedAttrs from VarExp#8644
Fix Hack: Remove hasCheckedAttrs from VarExp#8644dlang-bot merged 1 commit intodlang:masterfrom JinShil:refactor_enum_mem_deprecated
Conversation
|
Thanks for your pull request, @JinShil! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#8644" |
|
From #8645 (comment):
@JinShil Did you intend to target stable with this PR? (If this PR is merged to master, you'll need to wait until the next merge from master to stable, which is after ~2 months.) |
No, it's not a critical PR. I know my other PR is waiting on it, but I think it can wait until the next master --> stable merge. I'm not even sure if there's a real dependency yet. |
|
Alright, thanks for confirming. |
hasCheckedAttrswas a member variable ofVarExpintroduced in #8404 to avoid having the deprecation message printed multiple times asexpressionSemanticcould have been called on the sameVarExpmultiple times.While working on a bug fix recently, I discovered that we could avoid that hack by checking for deprecation in
EnumMember.GetVarExp, as is done withcheckDisabled.This PR removes the hack and makes the code more consistent with the existing implementation.