Skip to content

Commit 351c0fa

Browse files
committed
Reorder top-level crate items.
- `use` before `mod` - `pub` before `non-pub` - Alphabetical order within sections
1 parent df8fe7d commit 351c0fa

File tree

1 file changed

+29
-29
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+29
-29
lines changed

compiler/rustc_data_structures/src/lib.rs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,62 +45,62 @@
4545
#[macro_use]
4646
extern crate tracing;
4747

48-
use std::fmt;
49-
48+
pub use atomic_ref::AtomicRef;
49+
pub use ena::snapshot_vec;
50+
pub use ena::undo_log;
51+
pub use ena::unify;
5052
pub use rustc_index::static_assert_size;
5153

52-
/// This calls the passed function while ensuring it won't be inlined into the caller.
53-
#[inline(never)]
54-
#[cold]
55-
pub fn outline<F: FnOnce() -> R, R>(f: F) -> R {
56-
f()
57-
}
54+
use std::fmt;
5855

56+
pub mod aligned;
5957
pub mod base_n;
6058
pub mod binary_search_util;
6159
pub mod captures;
60+
pub mod fingerprint;
6261
pub mod flat_map_in_place;
6362
pub mod flock;
63+
pub mod frozen;
6464
pub mod fx;
6565
pub mod graph;
6666
pub mod intern;
6767
pub mod jobserver;
6868
pub mod macros;
69-
pub mod obligation_forest;
70-
pub mod sip128;
71-
pub mod small_c_str;
72-
pub mod snapshot_map;
73-
pub mod svh;
74-
pub use ena::snapshot_vec;
75-
mod atomic_ref;
76-
pub mod fingerprint;
7769
pub mod marker;
7870
pub mod memmap;
71+
pub mod obligation_forest;
72+
pub mod owned_slice;
73+
pub mod packed;
7974
pub mod profiling;
8075
pub mod sharded;
76+
pub mod sip128;
77+
pub mod small_c_str;
78+
pub mod snapshot_map;
8179
pub mod sorted_map;
80+
pub mod sso;
8281
pub mod stable_hasher;
8382
pub mod stack;
83+
pub mod steal;
84+
pub mod svh;
8485
pub mod sync;
86+
pub mod tagged_ptr;
87+
pub mod temp_dir;
8588
pub mod tiny_list;
8689
pub mod transitive_relation;
90+
pub mod unhash;
91+
pub mod unord;
8792
pub mod vec_linked_list;
8893
pub mod work_queue;
89-
pub use atomic_ref::AtomicRef;
90-
pub mod aligned;
91-
pub mod frozen;
94+
95+
mod atomic_ref;
9296
mod hashes;
93-
pub mod owned_slice;
94-
pub mod packed;
95-
pub mod sso;
96-
pub mod steal;
97-
pub mod tagged_ptr;
98-
pub mod temp_dir;
99-
pub mod unhash;
100-
pub mod unord;
10197

102-
pub use ena::undo_log;
103-
pub use ena::unify;
98+
/// This calls the passed function while ensuring it won't be inlined into the caller.
99+
#[inline(never)]
100+
#[cold]
101+
pub fn outline<F: FnOnce() -> R, R>(f: F) -> R {
102+
f()
103+
}
104104

105105
/// Returns a structure that calls `f` when dropped.
106106
pub fn defer<F: FnOnce()>(f: F) -> OnDrop<F> {

0 commit comments

Comments
 (0)