diff options
| author | sayantn <sayantn05@gmail.com> | 2025-05-30 21:41:36 +0530 |
|---|---|---|
| committer | sayantn <sayantn05@gmail.com> | 2025-06-12 00:32:42 +0530 |
| commit | d56fcd968d1334bf0c80205fb805a88999fffb5a (patch) | |
| tree | b29157143ae1fde9e88c98ee3043ca7a6e7348aa /compiler/rustc_codegen_ssa/src | |
| parent | 14863ea0777c68348b3e6e7a8472423d273a52af (diff) | |
| download | rust-d56fcd968d1334bf0c80205fb805a88999fffb5a.tar.gz rust-d56fcd968d1334bf0c80205fb805a88999fffb5a.zip | |
Simplify implementation of Rust intrinsics by using type parameters in the cache
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/builder.rs b/compiler/rustc_codegen_ssa/src/traits/builder.rs index 7f78bc75695..f35f551d590 100644 --- a/compiler/rustc_codegen_ssa/src/traits/builder.rs +++ b/compiler/rustc_codegen_ssa/src/traits/builder.rs @@ -23,7 +23,7 @@ use crate::common::{AtomicRmwBinOp, IntPredicate, RealPredicate, Synchronization use crate::mir::operand::{OperandRef, OperandValue}; use crate::mir::place::{PlaceRef, PlaceValue}; -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub enum OverflowOp { Add, Sub, @@ -215,7 +215,7 @@ pub trait BuilderMethods<'a, 'tcx>: fn checked_binop( &mut self, oop: OverflowOp, - ty: Ty<'_>, + ty: Ty<'tcx>, lhs: Self::Value, rhs: Self::Value, ) -> (Self::Value, Self::Value); |
