about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/asm.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-24 22:14:11 +0200
committerGitHub <noreply@github.com>2024-08-24 22:14:11 +0200
commit0dfdea1c45b1b832391cb32db0fd58d0ec29d967 (patch)
tree290bb2437951d8cfdbd92f7c3dd4471d1a57190e /compiler/rustc_ast_lowering/src/asm.rs
parentf167efad2f51088d86180ee89177b3d7c9e7c2f5 (diff)
parentebfa3e3f6231c7d2353b16f1e9529b90488ee447 (diff)
downloadrust-0dfdea1c45b1b832391cb32db0fd58d0ec29d967.tar.gz
rust-0dfdea1c45b1b832391cb32db0fd58d0ec29d967.zip
Rollup merge of #128596 - RalfJung:const_fn_floating_point_arithmetic, r=nnethercote
stabilize const_fn_floating_point_arithmetic

Part of https://github.com/rust-lang/rust/issues/128288
Fixes https://github.com/rust-lang/rust/issues/57241

The existing test `tests/ui/consts/const_let_eq_float.rs`  ([link](https://github.com/RalfJung/rust/blob/const_fn_floating_point_arithmetic/tests/ui/consts/const_let_eq_float.rs)) covers the basics, and also Miri has extensive tests covering the interpreter's float machinery. Also, that machinery can already be used on stable inside `const`/`static` initializers, just not inside `const fn`.

This was explicitly called out in https://github.com/rust-lang/rfcs/pull/3514 so in a sense t-lang just recently already FCP'd this, but let's hear from them whether they want another FCP for the stabilization here or whether that was covered by the FCP for the RFC.
Cc ``@rust-lang/lang``

### Open items

- [x] Update the Reference: https://github.com/rust-lang/reference/pull/1566
Diffstat (limited to 'compiler/rustc_ast_lowering/src/asm.rs')
0 files changed, 0 insertions, 0 deletions