Skip to content

Conversation

@antonio-hickey
Copy link

Replacing all occurrences of addr_of_mut!(place) with &raw mut place.

This will allow us to reduce macro complexity, and improve consistency with existing reference syntax as &raw mut is similar to &mut making it fit more naturally with other existing code.

NOTE: A alternative version of #49, but based on #102

nbdd0121 and others added 2 commits January 19, 2026 18:44
Instead of check if a feature is already stable, simply enable them and
allow the warning if the feature is already stable.

This avoids the need of the hardcoding whether a feature has been
stabilized at a given version.

Signed-off-by: Gary Guo <gary@garyguo.net>
Replacing all occurrences of `addr_of_mut!(place)`
with `&raw mut place`.

This will allow us to reduce macro complexity, and improve consistency
with existing reference syntax as `&raw mut` is similar to `&mut`
making it fit more naturally with other existing code.

Suggested-by: Benno Lossin <benno.lossin@proton.me>
Link: Rust-for-Linux/linux#1148
Signed-off-by: Antonio Hickey <contact@antoniohickey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants