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

Do not convert immutable arrays on downlevel runtimes #69520

Merged
merged 6 commits into from
Aug 15, 2023

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #69507

@CyrusNajmabadi CyrusNajmabadi requested review from a team as code owners August 15, 2023 16:56
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 15, 2023
@@ -21,7 +21,7 @@
<!-- Versions used by several individual references below -->
<RoslynDiagnosticsNugetPackageVersion>3.11.0-beta1.23364.2</RoslynDiagnosticsNugetPackageVersion>
<MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview.23364.2</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftCodeAnalysisTestingVersion>1.1.2-beta1.23407.1</MicrosoftCodeAnalysisTestingVersion>
<MicrosoftCodeAnalysisTestingVersion>1.1.2-beta1.23411.1</MicrosoftCodeAnalysisTestingVersion>
Copy link
Member Author

@CyrusNajmabadi CyrusNajmabadi Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed so we get the right .net80 dlls that properly add the CollectionBuilderAttribute to the immutable collections.

@sharwell sharwell disabled auto-merge August 15, 2023 18:32
@sharwell
Copy link
Member

@CyrusNajmabadi Disabled auto-merge on this one to consider another option

Copy link
Member

@sharwell sharwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other value types are impacted by the same issue, so requesting it be addressed per the more comprehensive condition given in a code comment.

@CyrusNajmabadi CyrusNajmabadi dismissed sharwell’s stale review August 15, 2023 18:38

Such a change can happen in a followup PR. This is the known bad case we have to fix asap.

@CyrusNajmabadi CyrusNajmabadi merged commit 1769633 into dotnet:main Aug 15, 2023
@ghost ghost added this to the Next milestone Aug 15, 2023
@CyrusNajmabadi CyrusNajmabadi deleted the specialCaseImmutableArray branch August 15, 2023 23:05
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE 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.

Collection expressions codefix changes behaviour for ImmutableArray<T>
4 participants