rust: macros: enable the rest of the tests
authorEthan D. Twardy <ethan.twardy@gmail.com>
Thu, 4 Jul 2024 14:55:45 +0000 (09:55 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 1 Nov 2024 21:02:53 +0000 (22:02 +0100)
commitae7851c29747fa3765ecb722fe722117a346f988
tree6bc4d93bc31ec7811cfa3e21352a8d9d140c8be1
parent7e06561fcd9636b6483c5fcd8fe935475f4944f8
rust: macros: enable the rest of the tests

Now that the rusttest target for the macros crate is compiled with the
kernel crate as a dependency, the rest of the rustdoc tests can be
enabled.

Signed-off-by: Ethan D. Twardy <ethan.twardy@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://github.com/Rust-for-Linux/linux/issues/1076
Link: https://lore.kernel.org/r/20240704145607.17732-5-ethan.twardy@gmail.com
[ Rebased (use `K{Box,Vec}` instead, enable `lint_reasons` feature).
  Remove unneeded `rust` as language in examples, as well as
  `#[macro_use]` `extern`s. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/macros/lib.rs