Re: [PATCH 3/3] rust: add `build_error!` to the prelude

Alice Ryhl
2024-11-25T09:15:53Z

On Sat, Nov 23, 2024 at 11:29 PM Miguel Ojeda <ojeda@kernel.org> 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>