Files
rust/library/std/src
Matthias Krüger ab2dd3aeb9 Rollup merge of #127950 - nnethercote:rustfmt-skip-on-use-decls, r=cuviper
Use `#[rustfmt::skip]` on some `use` groups to prevent reordering.

`use` declarations will be reformatted in #125443. Very rarely, there is a desire to force a group of `use` declarations together in a way that auto-formatting will break up. E.g. when you want a single comment to apply to a group. #126776 dealt with all of these in the codebase, ensuring that no comments intended for multiple `use` declarations would end up in the wrong place. But some people were unhappy with it.

This commit uses `#[rustfmt::skip]` to create these custom `use` groups in an idiomatic way for a few of the cases changed in #126776. This works because rustfmt treats any `use` item annotated with `#[rustfmt::skip]` as a barrier and won't reorder other `use` items around it.

r? `@cuviper`
2024-07-26 00:57:21 +02:00
..
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-08-13 13:07:53 -06:00
2024-07-19 12:23:49 -04:00
2024-07-19 12:23:49 -04:00
2024-01-11 11:30:12 -05:00
2024-07-15 05:01:22 +00:00
2024-07-14 17:44:13 -07:00
2024-05-01 21:01:51 -04:00
2024-07-12 11:52:04 -04:00
2024-04-08 11:57:17 +00:00
2024-03-07 07:49:22 +01:00