On Mon, Sep 08, 2025 at 12:49:37PM +0200, Paolo Bonzini wrote: > Date: Mon, 8 Sep 2025 12:49:37 +0200 > From: Paolo Bonzini <[email protected]> > Subject: [PATCH 05/33] rust: use inline const expressions > X-Mailer: git-send-email 2.51.0 > > They were stabilized in Rust 1.79.0. > > Signed-off-by: Paolo Bonzini <[email protected]> > --- > docs/devel/rust.rst | 9 +++------ > rust/qemu-api/src/callbacks.rs | 27 +-------------------------- > rust/qemu-api/src/chardev.rs | 2 +- > rust/qemu-api/src/qdev.rs | 2 +- > rust/qemu-api/src/timer.rs | 2 +- > rust/qemu-api/src/vmstate.rs | 2 +- > 6 files changed, 8 insertions(+), 36 deletions(-) > > diff --git a/docs/devel/rust.rst b/docs/devel/rust.rst > index e0ee4a9837d..98e3a33a3ce 100644 > --- a/docs/devel/rust.rst > +++ b/docs/devel/rust.rst
... > @@ -97,9 +94,9 @@ patches are welcome: > before QEMU can use them. For now, there is special code in > ``util/error.c`` to support non-NUL-terminated file names. > > -* associated const equality would be nice to have for some users of > - ``callbacks::FnCall``, but is still experimental. ``ASSERT_IS_SOME`` > - replaces it. > +Associated const equality would be nice to have for some users of > +``callbacks::FnCall``, but is still experimental. Const assertions > +are used instead. nit: this format seems broken - this sentence should be after bullet. Reviewed-by: Zhao Liu <[email protected]>
