diff options
| author | Miguel Ojeda <[email protected]> | 2024-11-23 22:28:49 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-01-09 23:19:09 +0000 |
| commit | 4401565fe92be6ee54a68ea58d80a4076007d5eb (patch) | |
| tree | ab32e3e48391932767d59d56a01c5f699869471d /scripts/generate_rust_analyzer.py | |
| parent | rust: kernel: move `build_error` hidden function to prevent mistakes (diff) | |
| download | kernel-4401565fe92be6ee54a68ea58d80a4076007d5eb.tar.gz kernel-4401565fe92be6ee54a68ea58d80a4076007d5eb.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Applied the change to the new miscdevice cases. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
