summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorAltan Ozlu <altan@ozlu.eu>2025-03-26 20:25:36 +0000
committerMiguel Ojeda <ojeda@kernel.org>2025-05-12 00:20:25 +0200
commit0fa5f8c877cae959de7cf6c3dc054e23e7ebcd75 (patch)
treed9ace5e049901df60b77e4b2ed560106f60950bb /scripts/generate_rust_analyzer.py
parent79d04e73ba481f8537691095cdd2cfd3acdb9c80 (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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions