From f144cc338eb5a2b25585e1237e537224614bf4ea Mon Sep 17 00:00:00 2001 From: lyken Date: Mon, 5 Aug 2024 10:53:29 +0800 Subject: [PATCH] core/model: remove extra generic params --- nac3core/src/codegen/model/int.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nac3core/src/codegen/model/int.rs b/nac3core/src/codegen/model/int.rs index 673641d9..e0f38c73 100644 --- a/nac3core/src/codegen/model/int.rs +++ b/nac3core/src/codegen/model/int.rs @@ -164,7 +164,7 @@ impl IntModel { } impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { - pub fn s_extend_or_bit_cast, G: CodeGenerator + ?Sized>( + pub fn s_extend_or_bit_cast>( &self, tyctx: TypeContext<'ctx>, ctx: &CodeGenContext<'ctx, '_>, @@ -174,7 +174,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { IntModel(to_int_kind).s_extend_or_bit_cast(tyctx, ctx, self.value, name) } - pub fn truncate, G: CodeGenerator + ?Sized>( + pub fn truncate>( &self, tyctx: TypeContext<'ctx>, ctx: &CodeGenContext<'ctx, '_>, @@ -185,7 +185,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { } #[must_use] - pub fn add( + pub fn add( &self, ctx: &CodeGenContext<'ctx, '_>, other: Int<'ctx, N>, @@ -196,7 +196,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { } #[must_use] - pub fn sub( + pub fn sub( &self, ctx: &CodeGenContext<'ctx, '_>, other: Int<'ctx, N>, @@ -207,7 +207,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { } #[must_use] - pub fn mul( + pub fn mul( &self, ctx: &CodeGenContext<'ctx, '_>, other: Int<'ctx, N>, @@ -217,7 +217,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> { self.model.believe_value(value) } - pub fn compare( + pub fn compare( &self, ctx: &CodeGenContext<'ctx, '_>, op: IntPredicate,