From: Alice Ryhl <aliceryhl@google.com>
To: Guangbo Cui <2407018371@qq.com>
Cc: "Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <benno.lossin@proton.me>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
rust-for-linux@vger.kernel.org,
"Danilo Krummrich" <dakr@kernel.org>
Subject: Re: [PATCH v5 1/2] rust: Implement Display for Box
Date: Mon, 11 Nov 2024 14:45:58 +0100 [thread overview]
Message-ID: <CAH5fLgi3PDmGgkNRv8T5iaiLAhn-jOv4cXdbX2mmhkx-TQXQ6w@mail.gmail.com> (raw)
In-Reply-To: <tencent_2AD25C6A6898D3A598CBA54BB6AF59BB900A@qq.com>
On Mon, Nov 11, 2024 at 2:45 PM Guangbo Cui <2407018371@qq.com> wrote:
>
> Currently `impl Display` is missing for `Box<T, A>`, as a result,
> things like using `Box<..>` directly as an operand in `pr_info!()`
> are impossible, which is less ergonomic compared to `Box` in Rust
> std.
>
> Therefore add `impl Display` for `Box`.
>
> Acked-by: Danilo Krummrich <dakr@kernel.org>
> Suggested-by: Boqun Feng <boqun.feng@gmail.com>
> Link: https://github.com/Rust-for-Linux/linux/issues/1126
> Signed-off-by: Guangbo Cui <2407018371@qq.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
next prev parent reply other threads:[~2024-11-11 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 13:40 [PATCH v5 1/2] rust: Implement Display for Box Guangbo Cui
2024-11-11 13:45 ` Alice Ryhl [this message]
2024-11-11 13:51 ` [PATCH v5 2/2] rust: align Debug implementation for Box with Display Guangbo Cui
2024-11-11 13:54 ` Alice Ryhl
2024-12-18 0:02 ` [PATCH v5 1/2] rust: Implement Display for Box Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH5fLgi3PDmGgkNRv8T5iaiLAhn-jOv4cXdbX2mmhkx-TQXQ6w@mail.gmail.com \
--to=aliceryhl@google.com \
--cc=2407018371@qq.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=gary@garyguo.net \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).