Skip to content

Commit 948a8f0

Browse files
committed
Add a fixme comment in current_target_data_layout
1 parent 05906da commit 948a8f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/hir-ty/src/layout/target.rs

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ pub fn current_target_data_layout_query(db: &dyn HirDatabase) -> Arc<TargetDataL
2424
},
2525
_ => 8,
2626
});
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.
2729
Arc::new(TargetDataLayout {
2830
endian,
2931
i1_align: AbiAndPrefAlign::new(Align::from_bytes(1).unwrap()),

0 commit comments

Comments
 (0)