Remove check_overflow method from MiscMethods
It can be retrieved from the Session too.
This commit is contained in:
parent
22b32432ca
commit
aacdce38f7
4 changed files with 1 additions and 18 deletions
|
@ -658,7 +658,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
// with #[rustc_inherit_overflow_checks] and inlined from
|
||||
// another crate (mostly core::num generic/#[inline] fns),
|
||||
// while the current crate doesn't use overflow checks.
|
||||
if !bx.cx().check_overflow() && msg.is_optional_overflow_check() {
|
||||
if !bx.sess().overflow_checks() && msg.is_optional_overflow_check() {
|
||||
const_cond = Some(expected);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ pub trait MiscMethods<'tcx>: BackendTypes {
|
|||
_vtable: Self::Value,
|
||||
) {
|
||||
}
|
||||
fn check_overflow(&self) -> bool;
|
||||
fn get_fn(&self, instance: Instance<'tcx>) -> Self::Function;
|
||||
fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value;
|
||||
fn eh_personality(&self) -> Self::Value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue