diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-20 20:10:25 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-17 08:05:39 +1000 |
| commit | 7f0ccfe69d7c79ed84a7fb23081fd2d15434da62 (patch) | |
| tree | aa68a9bbb03871743f013301227193f56fe46fad /library/alloc/src/testing | |
| parent | 75b6ec980059292faa9cdf538b552faf6b70fb29 (diff) | |
| download | rust-7f0ccfe69d7c79ed84a7fb23081fd2d15434da62.tar.gz rust-7f0ccfe69d7c79ed84a7fb23081fd2d15434da62.zip | |
Adjust some comments on individual `use` declarations.
When we do the big `use` reformatting there are a tiny number of cases where rustfmt moves a comment from one `use` item to another in an undesirable way. This commit pre-emptively rearranges things to prevent this from happening.
Diffstat (limited to 'library/alloc/src/testing')
| -rw-r--r-- | library/alloc/src/testing/crash_test.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/testing/crash_test.rs b/library/alloc/src/testing/crash_test.rs index bcf5f5f7251..ff72f99b2cb 100644 --- a/library/alloc/src/testing/crash_test.rs +++ b/library/alloc/src/testing/crash_test.rs @@ -1,5 +1,4 @@ -// We avoid relying on anything else in the crate, apart from the `Debug` trait. -use crate::fmt::Debug; +use crate::fmt::Debug; // the `Debug` trait is the only thing we use from `crate::fmt` use std::cmp::Ordering; use std::sync::atomic::{AtomicUsize, Ordering::SeqCst}; |
