Skip to content

Unsafe evolution: add MemorySafetyRules attribute#81441

Merged
jjonescz merged 13 commits into
dotnet:features/UnsafeEvolutionfrom
jjonescz:Unsafe-03-RulesAttribute
Dec 8, 2025
Merged

Unsafe evolution: add MemorySafetyRules attribute#81441
jjonescz merged 13 commits into
dotnet:features/UnsafeEvolutionfrom
jjonescz:Unsafe-03-RulesAttribute

Conversation

@jjonescz

Copy link
Copy Markdown
Member

Test plan: #81207

Inspired by RefSafetyRules attribute.

Relevant speclet section: https://github.com/dotnet/csharplang/blob/main/proposals/unsafe-evolution.md#metadata

Inspired by RefSafetyRules attribute.
@jjonescz jjonescz marked this pull request as ready for review November 25, 2025 17:36
@jjonescz jjonescz requested a review from a team as a code owner November 25, 2025 17:36
@jjonescz jjonescz requested review from 333fred and jcouv November 25, 2025 17:36
@jcouv jcouv self-assigned this Nov 25, 2025
@jjonescz

jjonescz commented Dec 1, 2025

Copy link
Copy Markdown
Member Author

@333fred @jcouv for reviews, thanks #Closed

1 similar comment
@jjonescz

jjonescz commented Dec 2, 2025

Copy link
Copy Markdown
Member Author

@333fred @jcouv for reviews, thanks #Closed

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

Didn't fully review the tests, too many questions on the first couple for me to continue.

Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
@jjonescz jjonescz requested a review from 333fred December 3, 2025 12:29
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs
Comment thread src/Compilers/CSharp/Portable/CSharpCompilationOptions.cs
Comment thread src/Compilers/CSharp/Portable/Symbols/Metadata/PE/PEModuleSymbol.cs Outdated
Comment thread src/Compilers/CSharp/Portable/Symbols/Metadata/PE/PEModuleSymbol.cs
Comment thread src/Compilers/CSharp/Portable/Symbols/Metadata/PE/PEMethodSymbol.cs
Comment thread src/Compilers/CSharp/Portable/Symbols/Source/SourceModuleSymbol.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/UnsafeEvolutionTests.cs Outdated
Comment thread src/Compilers/Core/Portable/MetadataReader/PEModule.cs

@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.

Done with review pass (commit 6)

@jjonescz jjonescz requested review from 333fred and jcouv December 4, 2025 12:58

@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 10) with minor feedback on LINQ usage

@jjonescz

jjonescz commented Dec 5, 2025

Copy link
Copy Markdown
Member Author

@333fred for another look, thanks

@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 13)

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