about summary refs log tree commit diff
path: root/library/core/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-20 14:07:04 +0200
committerGitHub <noreply@github.com>2024-06-20 14:07:04 +0200
commitef2e8bfcbfb10d54b8b8a0cdbe509783c7db5023 (patch)
treeaa2aaa1a9e1624a084668dabcb8dd65313652847 /library/core/tests
parent7b91d11abb8883d903cbd09b07e022ede814b89d (diff)
parentb5a5647ee0f8af226fcc44a3e6b054fc758a785e (diff)
downloadrust-ef2e8bfcbfb10d54b8b8a0cdbe509783c7db5023.tar.gz
rust-ef2e8bfcbfb10d54b8b8a0cdbe509783c7db5023.zip
Rollup merge of #126717 - nnethercote:rustfmt-use-pre-cleanups, r=jieyouxu
Clean up some comments near `use` declarations

#125443 will reformat all `use` declarations in the repository. There are a few edge cases involving comments on `use` declarations that require care. This PR cleans up some clumsy comment cases, taking us a step closer to #125443 being able to merge.

r? ``@lqd``
Diffstat (limited to 'library/core/tests')
-rw-r--r--library/core/tests/iter/adapters/map_windows.rs1
-rw-r--r--library/core/tests/net/parser.rs1
-rw-r--r--library/core/tests/num/ieee754.rs1
-rw-r--r--library/core/tests/pin_macro.rs1
4 files changed, 4 insertions, 0 deletions
diff --git a/library/core/tests/iter/adapters/map_windows.rs b/library/core/tests/iter/adapters/map_windows.rs
index 7fb2408f8ac..6744eff3fa2 100644
--- a/library/core/tests/iter/adapters/map_windows.rs
+++ b/library/core/tests/iter/adapters/map_windows.rs
@@ -3,6 +3,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
 #[cfg(not(panic = "abort"))]
 mod drop_checks {
     //! These tests mainly make sure the elements are correctly dropped.
+
     use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::SeqCst};
 
     #[derive(Debug)]
diff --git a/library/core/tests/net/parser.rs b/library/core/tests/net/parser.rs
index 36b87d7c1f5..e03959ac77c 100644
--- a/library/core/tests/net/parser.rs
+++ b/library/core/tests/net/parser.rs
@@ -1,4 +1,5 @@
 // FIXME: These tests are all excellent candidates for AFL fuzz testing
+
 use core::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
 use core::str::FromStr;
 
diff --git a/library/core/tests/num/ieee754.rs b/library/core/tests/num/ieee754.rs
index 48ab75b6f17..b0f6a7545aa 100644
--- a/library/core/tests/num/ieee754.rs
+++ b/library/core/tests/num/ieee754.rs
@@ -27,6 +27,7 @@
 //! standard. That is why they accept wildly diverse inputs or may seem to duplicate other tests.
 //! Please consider this carefully when adding, removing, or reorganizing these tests. They are
 //! here so that it is clear what tests are required by the standard and what can be changed.
+
 use ::core::str::FromStr;
 
 // IEEE 754 for many tests is applied to specific bit patterns.
diff --git a/library/core/tests/pin_macro.rs b/library/core/tests/pin_macro.rs
index 79c8c166c58..57485ef3974 100644
--- a/library/core/tests/pin_macro.rs
+++ b/library/core/tests/pin_macro.rs
@@ -1,4 +1,5 @@
 // edition:2021
+
 use core::{
     marker::PhantomPinned,
     mem::{drop as stuff, transmute},