mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Add a fixme comment in current_target_data_layout
This commit is contained in:
parent
05906da0ec
commit
948a8f030b
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue