-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move IsBuildOnlyDiagnostic to use a switch expression #73313
Conversation
By suppressing CS8524, we can get a build-time diagnostic when we forget to update this, rather than getting a test failure that we often forget until CI throws.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub's online view makes it extremely hard to verify that no changes were made here. Highly recommend using vscode or (I assume) codeflow to make the review easier. @dotnet/roslyn-compiler for review, this is the change we discussed in standup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff in CodeFlow was sane ;-) LGTM Thanks (iteration 1) modulo codegen confirmation
or ErrorCode.ERR_InterceptsLocationDuplicateFile | ||
or ErrorCode.ERR_InterceptsLocationFileNotFound | ||
or ErrorCode.ERR_InterceptsLocationDataInvalidPosition | ||
or ErrorCode.INF_TooManyBoundLambdas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious if the code paths which process these are resilient against blowing the stack. Basically is there a chance that we add another error code here one day and the Mac leg starts failing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mac leg starts failing
mac leg is already failing for a long time :D - #70233
Co-authored-by: Rikki Gibson <[email protected]>
By suppressing CS8524, we can get a build-time diagnostic when we forget to update this, rather than getting a test failure that we often forget until CI throws.