rust/compiler/rustc_data_structures/src
Matthias Krüger 32e0fe129d
Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors
Use more slice patterns inside the compiler

Nothing super noteworthy. Just replacing the common 'fragile' pattern of "length check followed by indexing or unwrap" with slice patterns for legibility and 'robustness'.

r? ghost
2024-08-11 07:51:51 +02:00
..
base_n Stabilize the size of incr comp object file names 2024-04-22 10:50:07 -04:00
binary_search_util Remove invariant comments 2023-11-05 17:35:37 -06:00
fingerprint remove redundant imports 2023-12-10 10:56:22 +08:00
flock Reformat use declarations. 2024-07-29 08:26:52 +10:00
graph Reformat use declarations. 2024-07-29 08:26:52 +10:00
intern remove redundant imports 2023-12-10 10:56:22 +08:00
obligation_forest Reformat use declarations. 2024-07-29 08:26:52 +10:00
owned_slice Reformat use declarations. 2024-07-29 08:26:52 +10:00
profiling Don't use serde_json to serialize a simple JSON object 2023-04-16 15:00:06 +02:00
small_c_str Fix SmallCStr conversion from CStr 2024-02-14 18:40:53 -08:00
snapshot_map Reformat use declarations. 2024-07-29 08:26:52 +10:00
sorted_map Reformat use declarations. 2024-07-29 08:26:52 +10:00
sso Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_hasher Use uplifted rustc-stable-hash crate in rustc_data_structures 2024-07-11 16:51:16 +02:00
sync Reformat use declarations. 2024-07-29 08:26:52 +10:00
tagged_ptr Reformat use declarations. 2024-07-29 08:26:52 +10:00
transitive_relation get rid of RefCell in TransitiveRelation 2022-08-22 18:08:46 +08:00
aligned.rs fix broken intradoclinks 2023-04-14 13:04:58 +00:00
atomic_ref.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
base_n.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
captures.rs Remove #[allow(unused_lifetimes)] which is now unnecessary 2021-06-17 08:56:54 +09:00
fingerprint.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
flat_map_in_place.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
flock.rs Use Linux file locking on Redox 2024-06-16 12:56:50 +00:00
frozen.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
fx.rs rustc_mir_transform: Make DestinationPropagation stable for queries 2024-01-05 20:55:32 +01:00
hashes.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
intern.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
jobserver.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
marker.rs rustc_data_structures: Explicitly check for 64-bit atomics support 2024-06-28 10:26:45 +02:00
memmap.rs Issue 122262: MAP_PRIVATE for more reliability on virtualised filesystems. 2024-03-15 18:31:07 -04:00
owned_slice.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
packed.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
profiling.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
sharded.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
small_c_str.rs Fix SmallCStr conversion from CStr 2024-02-14 18:40:53 -08:00
sorted_map.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_hasher.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
stack.rs Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
steal.rs Tweak wording 2024-08-08 21:51:50 +02:00
svh.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tagged_ptr.rs Simplify bits_for_tags impl 2023-04-20 19:54:10 +00:00
temp_dir.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
transitive_relation.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
unhash.rs Avoid rehashing Fingerprint as a map key 2020-09-01 18:27:02 -07:00
unord.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
work_queue.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00