Make some float methods unstable const fn

Some float methods are now `const fn` under the `const_float_methods` feature gate.

In order to support `min`, `max`, `abs` and `copysign`, the implementation of some intrinsics had to be moved from Miri to rustc_const_eval.
This commit is contained in:
Eduardo Sánchez Muñoz
2024-10-14 21:02:13 +02:00
parent b73e613e00
commit c09ed3e767
14 changed files with 498 additions and 243 deletions

View File

@@ -288,6 +288,7 @@
#![feature(cfg_target_thread_local)]
#![feature(cfi_encoding)]
#![feature(concat_idents)]
#![feature(const_float_methods)]
#![feature(decl_macro)]
#![feature(deprecated_suggestion)]
#![feature(doc_cfg)]