mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Add a fixme comment in current_target_data_layout
This commit is contained in:
parent
05906da0ec
commit
948a8f030b
@ -24,6 +24,8 @@ pub fn current_target_data_layout_query(db: &dyn HirDatabase) -> Arc<TargetDataL
|
||||
},
|
||||
_ => 8,
|
||||
});
|
||||
// FIXME: These values are incorrect for many architectures, at least for aarch64 and riscv64,
|
||||
// use `rustc +nightly -Z unstable-options --print target-spec-json` or something similar instead.
|
||||
Arc::new(TargetDataLayout {
|
||||
endian,
|
||||
i1_align: AbiAndPrefAlign::new(Align::from_bytes(1).unwrap()),
|
||||
|
Loading…
Reference in New Issue
Block a user