We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6044836 commit 186d148Copy full SHA for 186d148
compiler/rustc_mir/src/transform/check_consts/ops.rs
@@ -523,11 +523,7 @@ impl NonConstOp for UnionAccess {
523
pub struct UnsizingCast;
524
impl NonConstOp for UnsizingCast {
525
fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status {
526
- if ccx.const_kind() != hir::ConstContext::ConstFn {
527
- Status::Allowed
528
- } else {
529
- Status::Unstable(sym::const_fn_transmute)
530
- }
+ mcf_status_in_item(ccx)
531
}
532
533
fn emit_error(&self, ccx: &ConstCx<'_, '_>, span: Span) {
0 commit comments