Re: [PATCH v5 11/17] rust: rbtree: refactor to use `&raw [const|mut]`

From: Benno Lossin
Date: Sun Mar 23 2025 - 06:40:06 EST


On Thu Mar 20, 2025 at 3:07 AM CET, Antonio Hickey wrote:
> 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@xxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1148
> Signed-off-by: Antonio Hickey <contact@xxxxxxxxxxxxxxxxx>

Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>

---
Cheers,
Benno

> ---
> rust/kernel/rbtree.rs | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)