Skip to content

Remove redundant unsafe context#116187

Merged
EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:remove-redundant-unsafe-3
Jun 2, 2025
Merged

Remove redundant unsafe context#116187
EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:remove-redundant-unsafe-3

Conversation

@EgorBo

@EgorBo EgorBo commented Jun 1, 2025

Copy link
Copy Markdown
Member

Removed in a semi-automated way, some places might require it back once "unsafe callers" is implemented (although, mostly as inner unsafe scopes, not modifiers).

@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 1, 2025
@EgorBo EgorBo added reduce-unsafe and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jun 1, 2025
@stephentoub

Copy link
Copy Markdown
Member

Is this basically "if the code continues to compile after removing unsafe, remove it"?

@EgorBo

EgorBo commented Jun 1, 2025

Copy link
Copy Markdown
Member Author

Is this basically "if the code continues to compile after removing unsafe, remove it"?

I was using R#'s 'remove redundant unsafe' inspection and the repo compiled locally

@am11 am11 added the area-Meta label Jun 1, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

@EgorBo
EgorBo merged commit 8a62488 into dotnet:main Jun 2, 2025
@EgorBo
EgorBo deleted the remove-redundant-unsafe-3 branch June 2, 2025 15:17
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants