We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ee4bf commit 681c7eeCopy full SHA for 681c7ee
compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -1,5 +1,3 @@
1
-use std::mem;
2
-
3
use either::{Left, Right};
4
5
use rustc_hir::def::DefKind;
@@ -75,9 +73,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
75
73
None => InternKind::Constant,
76
74
}
77
};
78
- let check_alignment = mem::replace(&mut ecx.machine.check_alignment, CheckAlignment::No); // interning doesn't need to respect alignment
79
intern_const_alloc_recursive(ecx, intern_kind, &ret)?;
80
- ecx.machine.check_alignment = check_alignment;
81
82
debug!("eval_body_using_ecx done: {:?}", ret);
83
Ok(ret)
0 commit comments