interning doesn't check alignment anymroe, because it doesn't do any more projections.
This commit is contained in:
parent
5bd5d214ef
commit
7a2b66319e
1 changed files with 0 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
||||||
use std::mem;
|
|
||||||
|
|
||||||
use either::{Left, Right};
|
use either::{Left, Right};
|
||||||
|
|
||||||
use rustc_hir::def::DefKind;
|
use rustc_hir::def::DefKind;
|
||||||
|
@ -75,9 +73,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
|
||||||
None => InternKind::Constant,
|
None => InternKind::Constant,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let check_alignment = mem::replace(&mut ecx.machine.check_alignment, CheckAlignment::No); // interning doesn't need to respect alignment
|
|
||||||
intern_const_alloc_recursive(ecx, intern_kind, &ret)?;
|
intern_const_alloc_recursive(ecx, intern_kind, &ret)?;
|
||||||
ecx.machine.check_alignment = check_alignment;
|
|
||||||
|
|
||||||
debug!("eval_body_using_ecx done: {:?}", ret);
|
debug!("eval_body_using_ecx done: {:?}", ret);
|
||||||
Ok(ret)
|
Ok(ret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue