cl-interpret: make the error type smaller (at the cost of a heap allocation)

This commit is contained in:
John 2025-01-31 03:35:35 -06:00
parent d95d35268e
commit 0e3ba342c4

View File

@ -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<Pattern>),
/// Fell through a non-exhaustive match
MatchNonexhaustive,
/// Error produced by a Builtin