Re: [PATCH 3/3] rust: add `build_error!` to the prelude
From: Alice Ryhl <aliceryhl@google.com>
Date: 2024-11-25 09:15:53
Also in:
linux-block, linux-patches, lkml, rust-for-linux
From: Alice Ryhl <aliceryhl@google.com>
Date: 2024-11-25 09:15:53
Also in:
linux-block, linux-patches, lkml, rust-for-linux
On Sat, Nov 23, 2024 at 11:29 PM Miguel Ojeda [off-list ref] wrote:
The sibling `build_assert!` is already in the prelude, it makes sense that a "core"/"language" facility like this is part of the prelude and users should not be defining their own one (thus there should be no risk of future name collisions and we would want to be aware of them anyway). Thus add `build_error!` into the prelude. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>