We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05906da commit 948a8f0Copy full SHA for 948a8f0
crates/hir-ty/src/layout/target.rs
@@ -24,6 +24,8 @@ pub fn current_target_data_layout_query(db: &dyn HirDatabase) -> Arc<TargetDataL
24
},
25
_ => 8,
26
});
27
+ // FIXME: These values are incorrect for many architectures, at least for aarch64 and riscv64,
28
+ // use `rustc +nightly -Z unstable-options --print target-spec-json` or something similar instead.
29
Arc::new(TargetDataLayout {
30
endian,
31
i1_align: AbiAndPrefAlign::new(Align::from_bytes(1).unwrap()),
0 commit comments