1
Fork 0

const_eval_select: make it safe but be careful with what we expose on stable for now

This commit is contained in:
Ralf Jung 2024-03-02 12:53:28 +01:00
parent 4cdd20584c
commit 374607d6b9
18 changed files with 84 additions and 43 deletions

View file

@ -128,7 +128,8 @@ pub fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -
| sym::fsub_algebraic
| sym::fmul_algebraic
| sym::fdiv_algebraic
| sym::frem_algebraic => hir::Unsafety::Normal,
| sym::frem_algebraic
| sym::const_eval_select => hir::Unsafety::Normal,
_ => hir::Unsafety::Unsafe,
};