diff options
| author | Alice Ryhl <[email protected]> | 2025-08-27 13:12:16 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-08-31 21:34:34 +0000 |
| commit | c09461a0d24fba8a847a37a381626141da22d8ee (patch) | |
| tree | fb4126dc654c9dfdfc88b00f454c7a018aa4844f /scripts/generate_rust_target.rs | |
| parent | Linux 6.17-rc3 (diff) | |
| download | kernel-c09461a0d24fba8a847a37a381626141da22d8ee.tar.gz kernel-c09461a0d24fba8a847a37a381626141da22d8ee.zip | |
rust: use the new name Location::file_as_c_str() in Rust >= 1.91.0
As part of the stabilization of Location::file_with_nul(), it was brought
up that the with_nul() suffix usually means something else in Rust APIs,
so the API is being renamed prior to stabilization [1].
Thus, use the new name on new rustc versions.
Link: https://www.github.com/rust-lang/rust/pull/145928 [1]
Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Kept `cfg` separation. Reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
