Skip to content

Commit 36ad0db

Browse files
committed
Add blank lines after module-level //! comments.
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
1 parent 4e67110 commit 36ad0db

File tree

19 files changed

+19
-0
lines changed

19 files changed

+19
-0
lines changed

alloc/src/vec/in_place_collect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
//! }
155155
//! vec.truncate(write_idx);
156156
//! ```
157+
157158
use crate::alloc::{handle_alloc_error, Global};
158159
use core::alloc::Allocator;
159160
use core::alloc::Layout;

core/src/str/count.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! Note: Because the term "leading byte" can sometimes be ambiguous (for
1818
//! example, it could also refer to the first byte of a slice), we'll often use
1919
//! the term "non-continuation byte" to refer to these bytes in the code.
20+
2021
use core::intrinsics::unlikely;
2122

2223
const USIZE_SIZE: usize = core::mem::size_of::<usize>();

core/tests/iter/adapters/map_windows.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
33
#[cfg(not(panic = "abort"))]
44
mod drop_checks {
55
//! These tests mainly make sure the elements are correctly dropped.
6+
67
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::SeqCst};
78

89
#[derive(Debug)]

core/tests/num/ieee754.rs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
//! standard. That is why they accept wildly diverse inputs or may seem to duplicate other tests.
2828
//! Please consider this carefully when adding, removing, or reorganizing these tests. They are
2929
//! here so that it is clear what tests are required by the standard and what can be changed.
30+
3031
use ::core::str::FromStr;
3132

3233
// IEEE 754 for many tests is applied to specific bit patterns.

panic_unwind/src/miri.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Unwinding panics for Miri.
2+
23
use alloc::boxed::Box;
34
use core::any::Any;
45

portable-simd/crates/core_simd/src/ops/assign.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Assignment operators
2+
23
use super::*;
34
use core::ops::{AddAssign, MulAssign}; // commutative binary op-assignment
45
use core::ops::{BitAndAssign, BitOrAssign, BitXorAssign}; // commutative bit binary op-assignment

portable-simd/crates/core_simd/src/ops/deref.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//! Ideally, Rust would take care of this itself,
33
//! and method calls usually handle the LHS implicitly.
44
//! But this is not the case with arithmetic ops.
5+
56
use super::*;
67

78
macro_rules! deref_lhs {

std/src/hash/random.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//! outside this crate.
77
//!
88
//! [`collections`]: crate::collections
9+
910
#[allow(deprecated)]
1011
use super::{BuildHasher, Hasher, SipHasher13};
1112
use crate::cell::Cell;

std/src/sys/pal/itron/thread.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Thread implementation backed by μITRON tasks. Assumes `acre_tsk` and
22
//! `exd_tsk` are available.
3+
34
use super::{
45
abi,
56
error::{expect_success, expect_success_aborting, ItronError},

std/src/sys/pal/solid/abi/fs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! `solid_fs.h`
2+
23
use crate::os::raw::{c_char, c_int, c_uchar};
34
pub use libc::{
45
ino_t, off_t, stat, time_t, O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY,

std/src/sys/pal/unix/process/process_unsupported/wait_status.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Emulated wait status for non-Unix #[cfg(unix) platforms
22
//!
33
//! Separate module to facilitate testing against a real Unix implementation.
4+
45
use crate::ffi::c_int;
56
use crate::fmt;
67
use crate::num::NonZero;

std/src/sys/pal/unix/thread.rs

+1
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ mod cgroups {
475475
//! * cgroup v2 in non-standard mountpoints
476476
//! * paths containing control characters or spaces, since those would be escaped in procfs
477477
//! output and we don't unescape
478+
478479
use crate::borrow::Cow;
479480
use crate::ffi::OsString;
480481
use crate::fs::{try_exists, File};

std/src/sys/sync/condvar/itron.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! POSIX conditional variable implementation based on user-space wait queues.
2+
23
use crate::sys::pal::itron::{
34
abi, error::expect_success_aborting, spin::SpinMutex, task, time::with_tmos_strong,
45
};

std/src/sys/sync/mutex/itron.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Mutex implementation backed by μITRON mutexes. Assumes `acre_mtx` and
22
//! `TA_INHERIT` are available.
3+
34
use crate::sys::pal::itron::{
45
abi,
56
error::{expect_success, expect_success_aborting, fail, ItronError},

std/src/sys/sync/rwlock/solid.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A readers-writer lock implementation backed by the SOLID kernel extension.
2+
23
use crate::sys::pal::{
34
abi,
45
itron::{

std/tests/create_dir_all_bare.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
//! Note that this test changes the current directory so
44
//! should not be in the same process as other tests.
5+
56
use std::env;
67
use std::fs;
78
use std::path::{Path, PathBuf};

test/src/bench.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Benchmarking module.
2+
23
use super::{
34
event::CompletedTest,
45
options::BenchMode,

test/src/helpers/concurrency.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Helper module which helps to determine amount of threads to be used
22
//! during tests execution.
3+
34
use std::{env, num::NonZero, thread};
45

56
pub fn get_concurrency() -> usize {

test/src/helpers/metrics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Benchmark metrics.
2+
23
use std::collections::BTreeMap;
34

45
#[derive(Clone, PartialEq, Debug, Copy)]

0 commit comments

Comments
 (0)