Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36ad0db

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

File tree

19 files changed

+19
-0
lines changed

19 files changed

+19
-0
lines changed

‎alloc/src/vec/in_place_collect.rs‎

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

‎core/src/str/count.rs‎

Lines changed: 1 addition & 0 deletions
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
constUSIZE_SIZE:usize = core::mem::size_of::<usize>();

‎core/tests/iter/adapters/map_windows.rs‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Assignment operators
2+
23
usesuper::*;
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‎

Lines changed: 1 addition & 0 deletions
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
usesuper::*;
67

78
macro_rules! deref_lhs{

‎std/src/hash/random.rs‎

Lines changed: 1 addition & 0 deletions
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
usesuper::{BuildHasher,Hasher,SipHasher13};
1112
usecrate::cell::Cell;

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

Lines changed: 1 addition & 0 deletions
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
usesuper::{
45
abi,
56
error::{expect_success, expect_success_aborting,ItronError},

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp