cl-interpret: make the error type smaller (at the cost of a heap allocation)
This commit is contained in:
parent
d95d35268e
commit
0e3ba342c4
@ -41,7 +41,7 @@ pub enum Error {
|
|||||||
/// A function was called with the wrong number of arguments
|
/// A function was called with the wrong number of arguments
|
||||||
ArgNumber { want: usize, got: usize },
|
ArgNumber { want: usize, got: usize },
|
||||||
/// A pattern failed to match
|
/// A pattern failed to match
|
||||||
PatFailed(Pattern),
|
PatFailed(Box<Pattern>),
|
||||||
/// Fell through a non-exhaustive match
|
/// Fell through a non-exhaustive match
|
||||||
MatchNonexhaustive,
|
MatchNonexhaustive,
|
||||||
/// Error produced by a Builtin
|
/// Error produced by a Builtin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user