|
|
Log in / Subscribe / Register

Enable rustdoc tests for the macros crate

From:  "Ethan D. Twardy" <ethan.twardy-AT-gmail.com>
To:  Miguel Ojeda <ojeda-AT-kernel.org>, Alex Gaynor <alex.gaynor-AT-gmail.com>, Wedson Almeida Filho <wedsonaf-AT-gmail.com>, Boqun Feng <boqun.feng-AT-gmail.com>, Gary Guo <gary-AT-garyguo.net>, Björn Roy Baron <bjorn3_gh-AT-protonmail.com>, Benno Lossin <benno.lossin-AT-proton.me>, Andreas Hindborg <a.hindborg-AT-samsung.com>, Alice Ryhl <aliceryhl-AT-google.com>, Martin Rodriguez Reboredo <yakoyoku-AT-gmail.com>, "Ethan D. Twardy" <ethan.twardy-AT-gmail.com>, Trevor Gross <tmgross-AT-umich.edu>, Aswin Unnikrishnan <aswinunni01-AT-gmail.com>, rust-for-linux-AT-vger.kernel.org (open list:RUST), linux-kernel-AT-vger.kernel.org (open list)
Subject:  [PATCH v3 0/4] Enable rustdoc tests for the macros crate
Date:  Thu, 04 Jul 2024 09:55:41 -0500
Message-ID:  <20240704145607.17732-1-ethan.twardy@gmail.com>
Archive-link:  Article

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




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds