about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-scrape-examples-macros/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-29 15:01:33 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-31 21:30:08 +1000
commit3079bd96b94fda7acba3161bd53719576224a210 (patch)
tree68b926486007d27b18a48b3e422926918bbcabee /tests/run-make/rustdoc-scrape-examples-macros/src
parent70bc0c5b204375e3efe1572689356bf99a9f4e9d (diff)
downloadrust-3079bd96b94fda7acba3161bd53719576224a210.tar.gz
rust-3079bd96b94fda7acba3161bd53719576224a210.zip
Run rustfmt on `tests/run-make/`.
With the exception of `tests/run-make/translation/test.rs`, which has a
syntax error.

The expected output in `rustdoc-error-lines/rmake.rs`'s required slight
tweaking.

The two `reproducible-build.rs` files need `// ignore-tidy-linelength`
because rustfmt produces lines longer than 100 chars, which tidy doesn't
like, yuk.
Diffstat (limited to 'tests/run-make/rustdoc-scrape-examples-macros/src')
-rw-r--r--tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs
index d8658a0f255..26ab1390a49 100644
--- a/tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs
+++ b/tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs
@@ -8,5 +8,7 @@ pub fn f() {}
 
 #[macro_export]
 macro_rules! a_rules_macro {
-  ($e:expr) => { ($e, foobar::f()); }
+    ($e:expr) => {
+        ($e, foobar::f());
+    };
 }