[PATCH v3 0/4] Enable rustdoc tests for the macros crate
From: Ethan D. Twardy
Date: Thu Jul 04 2024 - 10:57:21 EST
This patch series addresses GitHub issue Rust-For-Linux/linux#1076 by
enabling the rustdoc tests for the macros crate and updating kbuild to
compile these tests with appropriate dependencies respected. Reviewers:
Please pay particular attention to the Kbuild changes in rust/Makefile.
I appreciate your time in reviewing this series!
Changes from v2:
- Remove one more noisy empty line in the macros doctest
Changes from v1:
- Resolve a duplicate kbuild rule identified by the test robot
- Fix a number of formatting issues in the tests
Ethan D. Twardy (4):
kbuild: rust: Expand rusttest target for macros
rust: Enable test for macros::module
rust: macros: Enable use from macro_rules!
rust: macros: Enable the rest of the tests
rust/Makefile | 29 ++++++++--
rust/macros/lib.rs | 125 ++++++++++++++++++++++++++++++++-----------
rust/macros/paste.rs | 15 ++++--
3 files changed, 131 insertions(+), 38 deletions(-)
base-commit: a126eca844353360ebafa9088d22865cb8e022e3
--
2.44.2