diff options
| author | 2025-03-26 20:25:36 +0000 | |
|---|---|---|
| committer | 2025-05-12 00:20:25 +0200 | |
| commit | 0fa5f8c877cae959de7cf6c3dc054e23e7ebcd75 (patch) | |
| tree | d9ace5e049901df60b77e4b2ed560106f60950bb /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | docs: rust: explain that `///` vs. `//` applies to private items too (diff) | |
rust: static_assert: add optional message
Add an optional panic message to the `static_assert!` macro.
The panic message doesn't support argument formatting, because the
`assert!` macro only supports formatting in non-const contexts.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1149
Signed-off-by: Altan Ozlu <altan@ozlu.eu>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Link: https://lore.kernel.org/r/20250326202520.1176162-2-altan@ozlu.eu
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
