Rustup to rustc 1.74.0-nightly (65ea825f4 2023-09-18)

This commit is contained in:
bjorn3 2023-09-19 12:34:26 +00:00
parent 5f3b867831
commit baee5ce1fc
3 changed files with 3 additions and 7 deletions

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2023-09-14"
channel = "nightly-2023-09-19"
components = ["rust-src", "rustc-dev", "llvm-tools"]

View File

@ -75,9 +75,7 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
let x = codegen_operand(fx, x);
let y = codegen_operand(fx, y);
let kind = match kind {
Operand::Constant(const_) => {
crate::constant::eval_mir_constant(fx, const_).unwrap().0
}
Operand::Constant(const_) => crate::constant::eval_mir_constant(fx, const_).0,
Operand::Copy(_) | Operand::Move(_) => unreachable!("{kind:?}"),
};

View File

@ -169,9 +169,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
let indexes = {
use rustc_middle::mir::interpret::*;
let idx_const = match idx {
Operand::Constant(const_) => {
crate::constant::eval_mir_constant(fx, const_).unwrap().0
}
Operand::Constant(const_) => crate::constant::eval_mir_constant(fx, const_).0,
Operand::Copy(_) | Operand::Move(_) => unreachable!("{idx:?}"),
};