about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-06 13:17:19 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-07 10:20:04 +1000
commit351c0fa2a33baa3406a0c00034ff5e2cdac6fd7f (patch)
tree3a85b3dce5229077ba5e9a1ff5ff9ca95a97ce9c /compiler/rustc_data_structures
parentdf8fe7dd34244b972cd9c4f7935fe8d6e1ea50db (diff)
downloadrust-351c0fa2a33baa3406a0c00034ff5e2cdac6fd7f.tar.gz
rust-351c0fa2a33baa3406a0c00034ff5e2cdac6fd7f.zip
Reorder top-level crate items.
- `use` before `mod`
- `pub` before `non-pub`
- Alphabetical order within sections
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/src/lib.rs58
1 files changed, 29 insertions, 29 deletions
diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs
index 6784c73b790..5ea97827277 100644
--- a/compiler/rustc_data_structures/src/lib.rs
+++ b/compiler/rustc_data_structures/src/lib.rs
@@ -45,62 +45,62 @@
 #[macro_use]
 extern crate tracing;
 
-use std::fmt;
-
+pub use atomic_ref::AtomicRef;
+pub use ena::snapshot_vec;
+pub use ena::undo_log;
+pub use ena::unify;
 pub use rustc_index::static_assert_size;
 
-/// This calls the passed function while ensuring it won't be inlined into the caller.
-#[inline(never)]
-#[cold]
-pub fn outline<F: FnOnce() -> R, R>(f: F) -> R {
-    f()
-}
+use std::fmt;
 
+pub mod aligned;
 pub mod base_n;
 pub mod binary_search_util;
 pub mod captures;
+pub mod fingerprint;
 pub mod flat_map_in_place;
 pub mod flock;
+pub mod frozen;
 pub mod fx;
 pub mod graph;
 pub mod intern;
 pub mod jobserver;
 pub mod macros;
-pub mod obligation_forest;
-pub mod sip128;
-pub mod small_c_str;
-pub mod snapshot_map;
-pub mod svh;
-pub use ena::snapshot_vec;
-mod atomic_ref;
-pub mod fingerprint;
 pub mod marker;
 pub mod memmap;
+pub mod obligation_forest;
+pub mod owned_slice;
+pub mod packed;
 pub mod profiling;
 pub mod sharded;
+pub mod sip128;
+pub mod small_c_str;
+pub mod snapshot_map;
 pub mod sorted_map;
+pub mod sso;
 pub mod stable_hasher;
 pub mod stack;
+pub mod steal;
+pub mod svh;
 pub mod sync;
+pub mod tagged_ptr;
+pub mod temp_dir;
 pub mod tiny_list;
 pub mod transitive_relation;
+pub mod unhash;
+pub mod unord;
 pub mod vec_linked_list;
 pub mod work_queue;
-pub use atomic_ref::AtomicRef;
-pub mod aligned;
-pub mod frozen;
+
+mod atomic_ref;
 mod hashes;
-pub mod owned_slice;
-pub mod packed;
-pub mod sso;
-pub mod steal;
-pub mod tagged_ptr;
-pub mod temp_dir;
-pub mod unhash;
-pub mod unord;
 
-pub use ena::undo_log;
-pub use ena::unify;
+/// This calls the passed function while ensuring it won't be inlined into the caller.
+#[inline(never)]
+#[cold]
+pub fn outline<F: FnOnce() -> R, R>(f: F) -> R {
+    f()
+}
 
 /// Returns a structure that calls `f` when dropped.
 pub fn defer<F: FnOnce()>(f: F) -> OnDrop<F> {