]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: kbuild: expand rusttest target for macros
authorEthan D. Twardy <ethan.twardy@gmail.com>
Thu, 4 Jul 2024 14:55:42 +0000 (09:55 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 1 Nov 2024 21:02:03 +0000 (22:02 +0100)
commitb2c261fa8629dff2bd1143fa790797a773ace102
tree582a0e2eb3179919f86cd1a353e52367c39d8813
parent718c4069896cabba5c39b637cbb7205927f16ae0
rust: kbuild: expand rusttest target for macros

Previously, the rusttest target for the macros crate did not specify
the dependencies necessary to run the rustdoc tests. These tests rely on
the kernel crate, so add the dependencies.

Signed-off-by: Ethan D. Twardy <ethan.twardy@gmail.com>
Link: https://github.com/Rust-for-Linux/linux/issues/1076
Link: https://lore.kernel.org/r/20240704145607.17732-2-ethan.twardy@gmail.com
[ Rebased (`alloc` is gone nowadays, sysroot handling is simpler) and
  simplified (reused `rustdoc_test` rule instead of adding a new one,
  no need for `rustdoc-compiler_builtins`, removed unneeded `macros`
  explicit path). Made `vtable` example fail (avoiding to increase
  the complexity in the `rusttest` target). Removed unstable
  `-Zproc-macro-backtrace` option. Reworded accordingly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/Makefile
rust/macros/lib.rs