mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Support floating point intrinsics in const eval
This commit is contained in:
parent
f9e3b180b7
commit
a6a27a7ff8
4 changed files with 296 additions and 109 deletions
|
@ -870,7 +870,7 @@ impl Evaluator<'_> {
|
|||
Owned(c.to_le_bytes().into())
|
||||
}
|
||||
chalk_ir::FloatTy::F64 => {
|
||||
let c = -from_bytes!(f32, c);
|
||||
let c = -from_bytes!(f64, c);
|
||||
Owned(c.to_le_bytes().into())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue