1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/rust/macros
Miguel Ojeda 4401565fe9 rust: add build_error! to the prelude
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.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20241123222849.350287-3-ojeda@kernel.org
[ Applied the change to the new miscdevice cases. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-01-10 00:19:09 +01:00
..
concat_idents.rs rust: macros: add concat_idents! proc macro 2022-12-04 01:59:04 +01:00
helpers.rs rust: macros: allow generic parameter default values in #[pin_data] 2024-04-07 22:03:42 +02:00
lib.rs rust: add build_error! to the prelude 2025-01-10 00:19:09 +01:00
module.rs Char/Misc/IIO/Whatever driver subsystem updates for 6.13-rc1 2024-11-29 11:58:27 -08:00
paste.rs rust: macros: enable paste! use from macro_rules! 2024-11-01 22:02:53 +01:00
pin_data.rs rust: macros: allow generic parameter default values in #[pin_data] 2024-04-07 22:03:42 +02:00
pinned_drop.rs rust: init: add PinnedDrop trait and macros 2023-04-12 18:41:05 +02:00
quote.rs rust: add derive macro for Zeroable 2023-08-21 14:31:48 +02:00
vtable.rs rust: macros: vtable: fix HAS_* redefinition (gen_const_name) 2023-08-09 21:15:07 +02:00
zeroable.rs rust: macros: add decl_generics to parse_generics() 2024-04-07 22:03:42 +02:00