Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/hir-def/src/data/adt.rs8
-rw-r--r--crates/hir-ty/src/layout.rs2
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/hir-def/src/data/adt.rs b/crates/hir-def/src/data/adt.rs
index 5d1834a864..c94622016d 100644
--- a/crates/hir-def/src/data/adt.rs
+++ b/crates/hir-def/src/data/adt.rs
@@ -173,7 +173,13 @@ fn parse_repr_tt(tt: &TopSubtree) -> Option<ReprOptions> {
}
}
- Some(ReprOptions { int, align: max_align, pack: min_pack, flags, field_shuffle_seed: Hash64::ZERO })
+ Some(ReprOptions {
+ int,
+ align: max_align,
+ pack: min_pack,
+ flags,
+ field_shuffle_seed: Hash64::ZERO,
+ })
}
impl StructData {
diff --git a/crates/hir-ty/src/layout.rs b/crates/hir-ty/src/layout.rs
index a72bcad50a..e2ab336d2e 100644
--- a/crates/hir-ty/src/layout.rs
+++ b/crates/hir-ty/src/layout.rs
@@ -14,8 +14,8 @@ use hir_def::{
};
use la_arena::{Idx, RawIdx};
use rustc_abi::AddressSpace;
-use rustc_index::{IndexSlice, IndexVec};
use rustc_hashes::Hash64;
+use rustc_index::{IndexSlice, IndexVec};
use triomphe::Arc;