summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-03-19 12:16:45 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-03-28 23:16:52 +0100
commitabfe5ee9971249b91020b5053afcaad43837336a (patch)
tree12326a59ffa9cd56040be8c7dd99b25cfa6a61ba /rust/kernel/alloc
parent4f13c93497e366cd8e41561a8e30ad4da887cb82 (diff)
rust: move `static_assert` into `build_assert`
Conceptually, `static_assert` is also a build-time assertion that occurs earlier in the pipeline. Consolidate the implementation so that we can use this as the canonical place to add more useful build-time assertions. Reviewed-by: Yury Norov <ynorov@nvidia.com> Signed-off-by: Gary Guo <gary@garyguo.net> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260319121653.2975748-2-gary@kernel.org [ Used kernel vertical style. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions