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-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-04 15:54:18 +02:00
2023-09-10 23:06:14 +02:00
2023-06-27 23:31:06 +00:00
2023-10-15 13:23:55 +00:00
2023-02-22 08:40:47 -07:00
2023-10-06 18:44:32 +00:00
2023-09-05 20:20:55 +00:00
2023-09-28 23:10:04 +00:00
2023-10-02 23:14:29 +00:00
2023-02-23 10:27:06 -07:00
2023-09-28 23:10:04 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-01 15:45:28 +00:00
2023-10-05 01:04:41 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-27 19:26:04 +01:00
2023-01-27 19:26:04 +01:00
2023-03-08 00:12:33 +00:00
2023-03-08 00:12:33 +00:00
2023-03-19 03:45:47 +00:00
2023-03-19 03:45:47 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-06 13:34:53 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-10-04 02:04:14 +00:00
2023-06-15 12:01:38 +02:00
2023-01-11 09:32:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-02-09 10:26:49 +00:00
2023-01-11 09:32:08 +00:00
2023-05-05 21:42:54 +01:00
2023-09-28 23:10:04 +00:00
2023-01-18 04:07:39 +00:00
2023-02-16 15:14:45 +11:00
2023-05-05 21:42:54 +01:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-10 21:20:36 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-21 05:21:07 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-26 19:25:46 +00:00
2023-01-11 09:32:08 +00:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-02-21 05:21:07 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-23 10:27:06 -07:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-19 15:39:05 +01:00
2023-06-11 16:12:59 +08:00
2023-06-19 20:00:41 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-08 14:48:17 +08:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-04-28 11:56:02 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-08-06 21:25:49 +02:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-09-28 23:10:04 +00:00
2023-01-11 09:32:08 +00:00
2023-04-07 11:18:07 -07:00
2023-07-11 17:52:43 +08:00
2023-04-07 11:18:07 -07:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-03-09 20:49:11 +00:00
2023-07-11 17:52:43 +08:00
2023-03-09 20:49:11 +00:00
2023-03-09 20:49:11 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-21 05:21:07 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-14 15:49:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-14 15:49:08 +00:00
2023-01-14 15:49:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-01-11 09:32:08 +00:00
2023-02-10 14:44:54 +01:00
2023-02-13 18:41:18 +00:00