Skip to content

Enable rustdoc tests for the macros crate

Ethan D. Twardy lkml rust-for-linux 3 versions – Applied

Status from this message: Applied to `rust-next` -- thanks Ethan!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyApplied
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Remove one more noisy empty line in the macros doctest

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4kbuild: rust: Expand rusttest target for macrosrust/Makefile+25 -30 replies
2/4rust: Enable test for macros::modulerust/Makefile rust/macros/lib.rs+11 -140 replies
3/4rust: macros: Enable use from macro_rules!rust/macros/lib.rs rust/macros/paste.rs+49 -120 replies
4/4rust: macros: Enable the rest of the testsrust/macros/lib.rs+46 -90 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAlice Ryhl
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Enable rustdoc tests for the macros crate

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

Signature · 1 line
2.44.2