Skip to content
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

Merged
merged 2 commits into from
May 2, 2024

Conversation

333fred
Copy link
Member

@333fred 333fred commented May 2, 2024

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.

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.
@333fred 333fred requested a review from a team as a code owner May 2, 2024 19:06
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels May 2, 2024
Copy link
Member Author

@333fred 333fred left a 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.

Copy link
Member

@jcouv jcouv left a 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

@jcouv jcouv self-assigned this May 2, 2024
or ErrorCode.ERR_InterceptsLocationDuplicateFile
or ErrorCode.ERR_InterceptsLocationFileNotFound
or ErrorCode.ERR_InterceptsLocationDataInvalidPosition
or ErrorCode.INF_TooManyBoundLambdas
Copy link
Contributor

@RikkiGibson RikkiGibson May 2, 2024

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 :)

Copy link
Member

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]>
@333fred 333fred enabled auto-merge (squash) May 2, 2024 21:02
@333fred 333fred merged commit e50c3e3 into dotnet:main May 2, 2024
24 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 2, 2024
@333fred 333fred deleted the switch-expr-diagnostic branch May 2, 2024 22:07
@Cosifne Cosifne modified the milestones: Next, 17.11 P2 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants