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
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections std: Unsafe-wrap HashMap::get_many_unchecked_mut 2024-07-14 16:49:16 -07:00
env remove redundant imports 2023-12-10 10:56:22 +08:00
error core/any: remove Provider trait 2023-08-13 13:07:53 -06:00
f16 Add classify and related methods for f16 and f128 2024-07-14 18:44:43 -04:00
f32 Extract repeated constants from f32 and f64 source 2024-06-24 00:42:21 -05:00
f64 Extract repeated constants from f32 and f64 source 2024-06-24 00:42:21 -05:00
f128 Add classify and related methods for f16 and f128 2024-07-14 18:44:43 -04:00
ffi Fix some #[cfg_attr(not(doc), repr(..))] 2024-07-22 01:10:06 +03:00
fs Avoid ref when using format! for perf 2024-07-19 12:23:49 -04:00
hash Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
io Avoid ref when using format! for perf 2024-07-19 12:23:49 -04:00
net Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
num removed nonfunctioning benchmark 2024-01-11 11:30:12 -05:00
os Rollup merge of #127733 - GrigorenkoPV:don't-forget, r=Amanieu 2024-07-24 18:00:39 +02:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path Rollup merge of #127297 - the8472:path-new-hash, r=Nilstrieb 2024-07-07 14:22:00 +02:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
process Remove DWORD 2024-07-15 05:01:22 +00:00
sync Rollup merge of #124881 - Sp00ph:reentrant_lock_tid, r=joboet 2024-07-18 18:10:14 +02:00
sys Auto merge of #128195 - matthiaskrgr:rollup-195dfdf, r=matthiaskrgr 2024-07-25 18:05:00 +00:00
sys_common std: Unsafe-wrap in Wtf8 impl 2024-07-14 17:44:13 -07:00
thread Rollup merge of #128135 - joboet:reduplicate_tls, r=tgross35 2024-07-24 22:22:18 +02:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs Unify guarantees about the default allocator 2024-06-11 17:13:26 +02:00
ascii.rs Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
backtrace.rs std: move sys_common::backtrace to sys 2024-06-16 13:14:01 +02:00
env.rs Rollup merge of #125206 - mgeisler:simplify-std-env-vars, r=jhpratt,tgross35 2024-07-16 20:10:09 -05:00
error.rs std: move sys_common::backtrace to sys 2024-06-16 13:14:01 +02:00
f16.rs Add more f16 and f128 library functions and constants 2024-06-25 01:32:36 -04:00
f32.rs variable-precision float operations behave non-deterministically 2024-05-02 18:57:30 +02:00
f64.rs std: removes logarithms family function edge cases handling for solaris. 2024-07-14 23:20:46 +01:00
f128.rs Add more f16 and f128 library functions and constants 2024-06-25 01:32:36 -04:00
fs.rs Improved clarity of documentation for std::fs::create_dir_all 2024-07-24 14:23:29 +02:00
keyword_docs.rs Mention labelled blocks in break docs 2024-03-15 10:51:57 -07:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Auto merge of #127153 - NobodyXu:pipe, r=ChrisDenton 2024-07-24 00:03:14 +00:00
macros.rs Document the column numbers for the dbg! macro 2024-07-17 14:10:41 +02:00
num.rs Replace version placeholders for 1.79 2024-05-01 21:01:51 -04:00
panic.rs Use payload_as_str instead of two downcasts. 2024-06-12 13:15:29 +02:00
panicking.rs fix interleaved panic output 2024-07-12 11:52:04 -04:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
path.rs Fix some #[cfg_attr(not(doc), repr(..))] 2024-07-22 01:10:06 +03:00
pipe.rs Initial implementation of anonymous_pipe 2024-07-23 23:13:56 +10:00
process.rs Fix minor typos in std::process doc on Win argv 2024-07-13 16:56:25 -07:00
rt.rs Use #[rustfmt::skip] on some use groups to prevent reordering. 2024-07-19 13:26:48 +10:00
time.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00