bors
a48396984a
Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb
...
Format all the let-chains in compiler crates
Since rust-lang/rustfmt#5910 has landed, soon we will have support for formatting let-chains (as soon as rustfmt syncs and beta gets bumped).
This PR applies the changes [from master rustfmt to rust-lang/rust eagerly](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/out.20formatting.20of.20prs/near/374997516 ), so that the next beta bump does not have to deal with a 200+ file diff and can remain concerned with other things like `cfg(bootstrap)` -- #113637 was a pain to land, for example, because of let-else.
I will also add this commit to the ignore list after it has landed.
The commands that were run -- I'm not great at bash-foo, but this applies rustfmt to every compiler crate, and then reverts the two crates that should probably be formatted out-of-tree.
```
~/rustfmt $ ls -1d ~/rust/compiler/* | xargs -I@ cargo run --bin rustfmt -- `@/src/lib.rs` --config-path ~/rust --edition=2021 # format all of the compiler crates
~/rust $ git checkout HEAD -- compiler/rustc_codegen_{gcc,cranelift} # revert changes to cg-gcc and cg-clif
```
cc `@rust-lang/rustfmt`
r? `@WaffleLapkin` or `@Nilstrieb` who said they may be able to review this purely mechanical PR :>
cc `@Mark-Simulacrum` and `@petrochenkov,` who had some thoughts on the order of operations with big formatting changes in https://github.com/rust-lang/rust/pull/95262#issue-1178993801 . I think the situation has changed since then, given that let-chains support exists on master rustfmt now, and I'm fairly confident that this formatting PR should land even if *bootstrap* rustfmt doesn't yet format let-chains in order to lessen the burden of the next beta bump.
2023-10-15 13:23:55 +00:00
..
2023-09-29 22:27:52 +02:00
2023-10-05 01:04:41 +00:00
2023-07-24 16:29:58 +02:00
2023-08-03 10:34:57 +00:00
2023-08-30 15:09:40 -07:00
2023-10-04 02:04:14 +00:00
2023-10-06 11:02:11 +00:00
2023-10-05 19:24:35 +02:00
2023-10-08 10:06:17 +00:00
2023-10-13 21:01:36 +00:00
2023-10-09 11:47:02 +00:00
2023-10-14 13:36:29 +02:00
2023-09-01 06:36:02 +05:30
2023-10-03 19:12:00 +00:00
2023-09-19 12:48:40 +00:00
2023-08-01 10:08:17 +02:00
2023-10-04 21:09:54 +00:00
2023-10-05 01:04:41 +00:00
2023-07-10 20:09:26 +00:00
2023-07-14 07:12:35 +08:00
2023-10-08 10:06:17 +00:00
2023-09-14 23:21:39 +02:00
2023-09-22 18:57:27 +03:00
2023-10-05 01:04:41 +00:00
2023-10-12 18:39:35 +02:00
2023-09-21 22:20:58 +02:00
2023-10-04 21:09:54 +00:00
2023-10-04 08:01:11 +08:00
2023-10-04 21:09:54 +00:00
2023-10-08 10:06:17 +00:00
2023-10-09 11:47:02 +00:00
2023-07-26 00:05:00 +08:00
2023-10-04 21:09:54 +00:00
2023-10-05 01:04:41 +00:00
2023-09-21 22:20:58 +02:00
2023-09-19 05:42:23 +00:00
2023-10-15 13:23:55 +00:00
2023-08-02 18:51:50 +02:00
2023-10-14 22:35:05 +02:00
2023-10-05 01:04:41 +00:00
2023-09-10 21:20:36 +00:00
2023-08-22 00:00:00 +00:00
2023-07-18 21:53:34 -04:00
2023-10-04 08:01:11 +08:00
2023-10-04 18:12:20 +11:00
2023-10-05 01:04:41 +00:00
2023-09-08 12:46:06 +01:00
2023-07-17 22:06:32 +00:00
2023-10-11 22:01:59 +02:00
2023-07-24 12:25:05 +01:00
2023-10-04 21:36:04 +02:00
2023-09-19 12:48:40 +00:00
2023-09-06 12:09:29 +03:00
2023-07-22 19:57:35 +02:00
2023-09-10 21:20:36 +00:00
2023-07-05 19:52:28 -04:00
2023-10-05 01:04:41 +00:00
2023-09-10 21:20:36 +00:00
2023-09-19 18:15:23 +02:00
2023-10-11 10:07:19 +00:00
2023-09-15 14:24:58 +00:00
2023-10-12 21:50:18 +00:00
2023-09-25 22:33:15 +02:00
2023-09-20 18:50:40 +02:00
2023-10-13 21:01:36 +00:00
2023-09-06 18:55:45 +02:00
2023-10-08 10:06:17 +00:00
2023-10-04 02:04:14 +00:00
2023-09-27 18:05:14 +10:00
2023-08-26 01:07:05 +00:00
2023-09-21 22:20:58 +02:00
2023-09-23 13:47:30 +00:00
2023-10-08 10:06:17 +00:00
2023-10-04 02:04:14 +00:00
2023-09-22 22:41:01 -07:00
2023-07-10 20:09:26 +00:00
2023-07-27 10:17:01 +02:00
2023-10-05 01:04:41 +00:00
2023-07-29 11:42:50 +02:00
2023-10-14 19:22:18 +02:00
2023-09-05 11:15:05 +02:00
2023-10-05 01:04:41 +00:00
2023-10-02 23:14:29 +00:00
2023-10-06 15:51:04 +00:00
2023-08-30 11:55:03 +00:00
2023-09-21 09:00:22 +00:00
2023-08-15 01:03:09 +00:00
2023-09-25 22:33:15 +02:00
2023-08-05 01:38:14 +08:00
2023-10-09 11:47:02 +00:00
2023-10-04 02:04:14 +00:00
2023-09-21 22:20:58 +02:00
2023-10-04 21:09:54 +00:00
2023-09-11 21:16:22 +02:00
2023-08-26 20:10:19 +00:00
2023-07-29 08:47:21 +08:00
2023-10-08 10:06:17 +00:00
2023-10-05 01:04:41 +00:00
2023-10-08 21:57:39 +00:00
2023-10-11 10:07:19 +00:00
2023-07-14 07:12:35 +08:00
2023-10-04 21:09:54 +00:00
2023-08-07 15:59:15 -07:00
2023-10-05 01:04:41 +00:00
2023-10-10 09:08:11 +11:00
2023-10-08 10:06:17 +00:00
2023-10-11 04:55:55 +02:00
2023-10-04 02:04:14 +00:00
2023-09-13 15:00:31 +00:00
2023-10-04 21:09:54 +00:00
2023-07-19 23:48:43 +00:00
2023-08-28 17:47:37 -03:00
2023-08-28 03:16:48 -07:00
2023-09-10 21:20:36 +00:00
2023-10-05 01:04:41 +00:00
2023-10-09 11:47:02 +00:00
2023-10-08 10:06:17 +00:00
2023-07-29 11:42:50 +02:00
2023-10-08 09:59:51 +00:00
2023-10-04 21:09:54 +00:00
2023-10-02 23:14:29 +00:00
2023-10-12 21:50:18 +00:00
2023-09-22 19:47:41 +00:00
2023-09-29 14:24:40 +02:00
2023-10-14 07:29:08 +00:00
2023-10-14 13:38:04 +02:00
2023-07-28 14:44:03 +00:00
2023-09-28 16:13:38 +00:00
2023-09-21 22:20:58 +02:00
2023-10-09 11:47:02 +00:00
2023-10-12 08:46:15 +11:00
2023-07-29 11:47:26 +02:00
2023-09-06 09:05:07 +05:30
2023-10-11 04:55:55 +02:00
2023-09-21 22:20:58 +02:00
2023-10-05 01:04:41 +00:00
2023-10-08 10:06:17 +00:00
2023-10-05 01:04:41 +00:00
2023-10-13 21:01:36 +00:00
2023-10-04 21:09:54 +00:00
2023-10-13 21:01:36 +00:00
2023-08-30 20:43:31 +02:00
2023-10-05 01:04:41 +00:00
2023-10-05 01:04:41 +00:00
2023-10-03 16:24:15 +02:00
2023-09-18 15:10:28 +00:00
2023-07-21 22:35:57 -07:00
2023-10-02 19:12:42 +02:00
2023-10-09 11:47:02 +00:00
2023-08-06 13:34:53 +00:00
2023-08-30 15:09:40 -07:00
2023-08-28 03:16:48 -07:00
2023-09-22 23:12:38 +02:00
2023-08-14 16:57:51 -07:00
2023-08-28 03:16:48 -07:00
2023-10-02 23:14:29 +00:00
2023-09-25 22:33:15 +02:00
2023-10-11 18:26:44 +00:00
2023-09-23 13:47:30 +00:00
2023-08-15 00:57:18 +08:00
2023-09-01 12:40:01 +00:00
2023-09-18 17:29:13 +01:00
2023-07-29 11:42:50 +02:00
2023-10-05 01:04:41 +00:00
2023-08-24 15:51:25 +02:00
2023-10-09 11:47:02 +00:00
2023-10-13 21:01:36 +00:00
2023-08-02 13:40:28 +03:00
2023-09-06 06:48:34 +08:00
2023-07-29 11:42:50 +02:00
2023-09-10 21:20:36 +00:00
2023-10-02 23:14:29 +00:00
2023-10-02 23:14:29 +00:00
2023-10-05 01:04:41 +00:00
2023-10-06 18:44:32 +00:00
2023-07-30 11:24:15 +02:00
2023-10-05 01:04:41 +00:00
2023-10-11 03:53:17 +03:00
2023-10-04 02:04:14 +00:00
2023-10-09 16:26:03 +02:00
2023-08-26 19:25:46 +00:00
2023-10-12 23:29:02 +00:00
2023-07-23 07:09:14 +00:00
2023-09-10 21:20:36 +00:00
2023-10-05 01:04:41 +00:00
2023-07-20 11:04:31 -07:00
2023-09-14 11:52:08 +00:00
2023-09-13 23:07:39 +08:00
2023-10-05 01:04:41 +00:00
2023-10-08 10:06:17 +00:00
2023-09-10 21:20:36 +00:00
2023-08-27 20:02:46 +02:00
2023-07-10 20:09:26 +00:00
2023-10-05 01:04:41 +00:00
2023-09-04 14:21:38 +02:00
2023-09-18 14:03:57 +00:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-10-02 23:14:29 +00:00
2023-10-09 11:47:02 +00:00
2023-09-04 14:21:38 +02:00
2023-09-19 18:15:23 +02:00
2023-08-04 16:09:14 +00:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-09-21 22:20:58 +02:00
2023-09-21 22:20:58 +02:00
2023-08-28 03:16:48 -07:00
2023-08-30 15:09:40 -07:00
2023-10-05 01:04:41 +00:00
2023-08-25 19:05:38 +00:00
2023-10-05 01:04:41 +00:00
2023-07-10 20:09:26 +00:00
2023-09-19 12:48:40 +00:00