aboutsummaryrefslogtreecommitdiffstats
path: root/rust/build_error.rs
diff options
context:
space:
mode:
authorGary Guo <[email protected]>2022-11-10 16:41:27 +0000
committerMiguel Ojeda <[email protected]>2022-12-04 00:59:15 +0000
commit650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (patch)
tree6ecbba36daeb21d8ede719688995c7205e17f8ba /rust/build_error.rs
parentrust: str: add `BStr` type (diff)
downloadkernel-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.tar.gz
kernel-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.zip
rust: str: add `b_str!` macro
Add the `b_str!` macro, which creates a new `BStr` from a string literal. It is usable in const contexts, for instance: const X: &BStr = b_str!("Example"); Signed-off-by: Gary Guo <[email protected]> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/build_error.rs')
0 files changed, 0 insertions, 0 deletions