diff options
| author | Benno Lossin <[email protected]> | 2025-03-08 11:05:09 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-03-16 20:59:19 +0000 |
| commit | dbd5058ba60c3499b24a7133a4e2e24dba6ea77b (patch) | |
| tree | 57fb3cbeb6d77dd896e5e57defd5b358eb47fa91 /rust/macros/quote.rs | |
| parent | rust: add pin-init crate build infrastructure (diff) | |
| download | kernel-dbd5058ba60c3499b24a7133a4e2e24dba6ea77b.tar.gz kernel-dbd5058ba60c3499b24a7133a4e2e24dba6ea77b.zip | |
rust: make pin-init its own crate
Rename relative paths inside of the crate to still refer to the same
items, also rename paths inside of the kernel crate and adjust the build
system to build the crate.
[ Remove the `expect` (and thus the `lint_reasons` feature) since
the tree now uses `quote!` from `rust/macros/export.rs`. Remove the
`TokenStream` import removal, since it is now used as well.
In addition, temporarily (i.e. just for this commit) use an `--extern
force:alloc` to prevent an unknown `new_uninit` error in the `rustdoc`
target. For context, please see a similar case in:
https://lore.kernel.org/lkml/[email protected]/
And adjusted the message above. - Miguel ]
Signed-off-by: Benno Lossin <[email protected]>
Reviewed-by: Fiona Behrens <[email protected]>
Tested-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/quote.rs')
| -rw-r--r-- | rust/macros/quote.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/macros/quote.rs b/rust/macros/quote.rs index 31b7ebe504f4..92cacc4067c9 100644 --- a/rust/macros/quote.rs +++ b/rust/macros/quote.rs @@ -2,6 +2,7 @@ use proc_macro::{TokenStream, TokenTree}; +#[allow(dead_code)] pub(crate) trait ToTokens { fn to_tokens(&self, tokens: &mut TokenStream); } |
