From f60865313d2949b8355918ecbc465216a22bf591 Mon Sep 17 00:00:00 2001 From: Chris Barrick Date: Mon, 2 Mar 2026 17:55:20 -0500 Subject: [PATCH] ctest: Update docs for the type rename methods See rust-lang/libc#4996 --- ctest/src/generator.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ctest/src/generator.rs b/ctest/src/generator.rs index bc12c7c4fe3ba..b79d319fe950a 100644 --- a/ctest/src/generator.rs +++ b/ctest/src/generator.rs @@ -927,6 +927,10 @@ impl TestGenerator { /// /// # Examples /// + /// This method can be used to remove the `struct` keyword from types in the + /// generated tests. For example, the code below will generate tests for + /// `timeval_t` rather than `struct timeval`. + /// /// ```no_run /// use ctest::TestGenerator; /// @@ -950,6 +954,10 @@ impl TestGenerator { /// /// # Examples /// + /// This method can be used to remove the `union` keyword from types in the + /// generated tests. For example, the code below will generate tests for + /// `__T1Union` rather than `union T1Union`. + /// /// ```no_run /// use ctest::TestGenerator; ///