Suggested default impl for the new *Stack
s
In fact they are currently `Default` (can't use it directly due to `const`) Maybe an allow is more appriate for stability but seems benign from my viewpoint
This commit is contained in:
parent
d2bf82d22b
commit
e1e32ea8ea
|
@ -71,7 +71,7 @@ impl Argument {
|
|||
}
|
||||
|
||||
/// Stores the argument context for calls in IR evaluation.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct ArgumentStack {
|
||||
arguments: Vec<Argument>,
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ pub struct ErrorHandler {
|
|||
}
|
||||
|
||||
/// Keeps track of error handlers pushed during evaluation of an IR block.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct ErrorHandlerStack {
|
||||
handlers: Vec<ErrorHandler>,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user