diff options
| author | bors <bors@rust-lang.org> | 2021-08-02 02:33:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-02 02:33:16 +0000 |
| commit | effea9a2a0d501db5722d507690a1a66236933bf (patch) | |
| tree | e504e13021242bcf417a32729de4f8101471d6bf /src/tools/rustfmt/tests/source | |
| parent | 24bbf7ac2fd6f5e71f5a4873baa4456e45bd648d (diff) | |
| parent | 0851841970f3bcc7616ff7f9c837e19d52c5e0dd (diff) | |
| download | rust-effea9a2a0d501db5722d507690a1a66236933bf.tar.gz rust-effea9a2a0d501db5722d507690a1a66236933bf.zip | |
Auto merge of #87689 - JohnTitor:rollup-ns38b56, r=JohnTitor
Rollup of 13 pull requests Successful merges: - #86183 (Change environment variable getters to error recoverably) - #86439 (Remove `Ipv4Addr::is_ietf_protocol_assignment`) - #86509 (Move `os_str_bytes` to `sys::unix`) - #86593 (Partially stabilize `const_slice_first_last`) - #86936 (Add documentation for `Ipv6MulticastScope`) - #87282 (Ensure `./x.py dist` adheres to `build.tools`) - #87468 (Update rustfmt) - #87504 (Update mdbook.) - #87608 (Remove unused field `Session.system_library_path`) - #87629 (Consistent spelling of "adapter" in the standard library) - #87633 (Update compiler_builtins to fix i128 shift/mul on thumbv6m) - #87644 (Recommend `swap_remove` in `Vec::remove` docs) - #87653 (mark a UB doctest as no_run) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/tools/rustfmt/tests/source')
| -rw-r--r-- | src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs index ea303e857de..5486877bde1 100644 --- a/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs +++ b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs @@ -26,3 +26,11 @@ fn bar() { _ => {} } } + +fn f(x: NonAscii) -> bool { + match x { + // foo + | Éfgh => true, + _ => false, + } +} \ No newline at end of file |
