make the new intrinsics safe

This commit is contained in:
Ralf Jung 2025-02-22 14:12:55 +01:00
parent 04e7a10af6
commit d1b34acb3b
6 changed files with 16 additions and 12 deletions

View file

@ -137,6 +137,10 @@ pub fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -
| sym::fmul_algebraic
| sym::fdiv_algebraic
| sym::frem_algebraic
| sym::round_ties_even_f16
| sym::round_ties_even_f32
| sym::round_ties_even_f64
| sym::round_ties_even_f128
| sym::const_eval_select => hir::Safety::Safe,
_ => hir::Safety::Unsafe,
};