Skip to content

Unsafe evolution: add LangVersion error for updated memory safety rules#82687

Merged
jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:Unsafe-21-LangVer
Mar 12, 2026
Merged

Unsafe evolution: add LangVersion error for updated memory safety rules#82687
jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:Unsafe-21-LangVer

Conversation

@jjonescz

@jjonescz jjonescz commented Mar 10, 2026

Copy link
Copy Markdown
Member

Test plan: #81207

Should resolve "MemorySafetyRulesAttribute / LangVer" item from the test plan.

Microsoft Reviewers: Open in CodeFlow

@jjonescz jjonescz marked this pull request as ready for review March 10, 2026 16:18
@jjonescz jjonescz requested a review from a team as a code owner March 10, 2026 16:18
@jjonescz jjonescz requested review from 333fred and jcouv March 10, 2026 16:19
@jcouv jcouv self-assigned this Mar 10, 2026
builder.Add(new CSDiagnostic(new CSDiagnosticInfo(ErrorCode.ERR_CompilationOptionNotAvailable,
nameof(Options.MemorySafetyRules), Options.MemorySafetyRules, LanguageVersion.ToDisplayString(),
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureUnsafeEvolution.RequiredVersion())), Location.None));
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure why, but this file made CodeFlow pretty unhappy for me. Is it the same for you?

Image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It took long time (like a minute) to load, but eventually loaded fine.

@jcouv jcouv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM Thanks (commit 1)

@jcouv jcouv mentioned this pull request Mar 10, 2026
4 tasks
@jjonescz

Copy link
Copy Markdown
Member Author

@333fred for another review, thanks

@jjonescz jjonescz merged commit 18f1f01 into dotnet:main Mar 12, 2026
26 checks passed
@jjonescz jjonescz deleted the Unsafe-21-LangVer branch March 12, 2026 11:08
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Mar 12, 2026
@jjonescz jjonescz modified the milestones: Next, 18.6 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants