Re: [PATCH v2 1/2] rust: page: add `SafePage` for race-free page access

From: Miguel Ojeda

Date: Wed Jun 10 2026 - 03:25:17 EST


On Fri, Jun 5, 2026 at 2:49 PM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> bindings,
> - error::code::*,
> - error::Result,
> + error::{
> + code::*,
> + Result, //
> + },
> types::{
> Opaque,
> Ownable,

> use core::{
> marker::PhantomData,
> mem::ManuallyDrop,
> - ops::Deref,
> + ops::{Deref, DerefMut},
> ptr::{
> self,
> NonNull, //

The first hunk fixes the imports, but the second introduces an import
in the wrong style.

I think the first part should be in its own commit, and the second
should be here but with the correct style.

But I just noticed the first part should also have been done as part
of your other patch I applied yesterday, so I just rebased to fix
that:

dea66841b9f8 ("rust: page: use the "kernel vertical" imports style").

Cheers,
Miguel