From 0e3ba342c45a426fc18059a65dcd150300322a71 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 31 Jan 2025 03:35:35 -0600 Subject: [PATCH] cl-interpret: make the error type smaller (at the cost of a heap allocation) --- compiler/cl-interpret/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cl-interpret/src/error.rs b/compiler/cl-interpret/src/error.rs index bc83213..60e9807 100644 --- a/compiler/cl-interpret/src/error.rs +++ b/compiler/cl-interpret/src/error.rs @@ -41,7 +41,7 @@ pub enum Error { /// A function was called with the wrong number of arguments ArgNumber { want: usize, got: usize }, /// A pattern failed to match - PatFailed(Pattern), + PatFailed(Box), /// Fell through a non-exhaustive match MatchNonexhaustive, /// Error produced by a Builtin