We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50598fa + e8808a4 commit 585d48cCopy full SHA for 585d48c
googletest/src/matchers/matches_pattern.rs
@@ -272,6 +272,16 @@
272
///
273
/// Trailing commas are allowed (but not required) in both ordinary and tuple
274
/// structs.
275
+///
276
+/// Note that the default format (rustfmt) can format macros if the macro
277
+/// argument is parseable Rust code. This is mostly true for this macro with two
278
+/// exceptions:
279
+/// * property matching
280
+/// * `ref` keyword with named fields
281
282
+/// An option for formatting large is to avoid these exceptions (by removing the
283
+/// parenthesis of properties and the `ref` keywords), run `rustfmt` and add
284
+/// them back.
285
#[macro_export]
286
#[doc(hidden)]
287
macro_rules! __matches_pattern {
0 commit comments