Skip to content

Commit 8eae198

Browse files
committed
Reorder stuff in rustc_data_structures/lib.rs
1 parent b08148f commit 8eae198

File tree

1 file changed

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

1 file changed

+29
-28
lines changed

compiler/rustc_data_structures/src/lib.rs

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,61 +46,62 @@ extern crate cfg_if;
4646
#[macro_use]
4747
extern crate rustc_macros;
4848

49+
pub use ena::snapshot_vec;
50+
pub use ena::undo_log;
51+
pub use ena::unify;
4952
pub use rustc_index::static_assert_size;
5053

51-
#[inline(never)]
52-
#[cold]
53-
pub fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
54-
f()
55-
}
56-
54+
#[macro_use]
55+
pub mod stable_hasher;
56+
pub mod aligned;
5757
pub mod base_n;
5858
pub mod binary_search_util;
5959
pub mod captures;
60+
pub mod fingerprint;
6061
pub mod flat_map_in_place;
6162
pub mod flock;
63+
pub mod frozen;
6264
pub mod functor;
6365
pub mod fx;
6466
pub mod graph;
6567
pub mod intern;
6668
pub mod jobserver;
6769
pub mod macros;
70+
pub mod marker;
71+
pub mod memmap;
6872
pub mod obligation_forest;
73+
pub mod owned_slice;
74+
pub mod profiling;
75+
pub mod sharded;
6976
pub mod sip128;
7077
pub mod small_c_str;
7178
pub mod small_str;
7279
pub mod snapshot_map;
73-
pub mod svh;
74-
pub use ena::snapshot_vec;
75-
pub mod memmap;
7680
pub mod sorted_map;
77-
#[macro_use]
78-
pub mod stable_hasher;
79-
mod atomic_ref;
80-
pub mod fingerprint;
81-
pub mod marker;
82-
pub mod profiling;
83-
pub mod sharded;
81+
pub mod sso;
8482
pub mod stack;
83+
pub mod steal;
84+
pub mod svh;
8585
pub mod sync;
86+
pub mod tagged_ptr;
87+
pub mod temp_dir;
8688
pub mod tiny_list;
8789
pub mod transitive_relation;
90+
pub mod unhash;
91+
pub mod unord;
8892
pub mod vec_linked_list;
8993
pub mod work_queue;
90-
pub use atomic_ref::AtomicRef;
91-
pub mod aligned;
92-
pub mod frozen;
94+
95+
mod atomic_ref;
9396
mod hashes;
94-
pub mod owned_slice;
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+
pub use atomic_ref::AtomicRef;
99+
100+
#[inline(never)]
101+
#[cold]
102+
pub fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
103+
f()
104+
}
104105

105106
pub struct OnDrop<F: Fn()>(pub F);
106107

0 commit comments

Comments
 (0)