Skip to content

Conversation

@smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Jun 2, 2025

Notably this removes the crate-level expect(unsafe_code) from vmcore, replacing it with much more narrowly scoped expects, and adding forbid(unsafe_code) to its other modules. This expect is needed due to our use of linkme inside the implementation of deriving SavedStateRoot. It is not needed on our derivations of this trait elsewhere, as the lint is suppressed when it comes from a macro invocation from a different crate. This is the only place we derive SavedStateRoot in vmcore itself.

@smalis-msft smalis-msft requested a review from a team as a code owner June 2, 2025 17:32
@smalis-msft smalis-msft enabled auto-merge (squash) June 2, 2025 17:33
@smalis-msft smalis-msft merged commit 4fed70d into microsoft:main Jun 4, 2025
28 checks passed
@smalis-msft smalis-msft deleted the attrs branch June 4, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants