about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs
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-invalid-expr/src/lib.rs
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-invalid-expr/src/lib.rs')
-rw-r--r--tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs
index c30c99dec60..ba8ee66fc78 100644
--- a/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs
+++ b/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs
@@ -1 +1,3 @@
-pub const fn f() -> usize { 5 }
+pub const fn f() -> usize {
+    5
+}