Skip to content

Commit

Permalink
ConstantEvaluator::copy_from: Rename argument handle to expr. (gf…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Oct 4, 2023
1 parent ae5aa20 commit 2ef3289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/proc/constant_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,11 @@ impl ConstantEvaluator<'_> {
/// constant's value into the function's arena so we can operate on it.
fn copy_from(
&mut self,
handle: Handle<Expression>,
expr: Handle<Expression>,
expressions: &Arena<Expression>,
) -> Result<Handle<Expression>, ConstantEvaluatorError> {
let span = expressions.get_span(handle);
match expressions[handle] {
let span = expressions.get_span(expr);
match expressions[expr] {
ref expr @ (Expression::Literal(_)
| Expression::Constant(_)
| Expression::ZeroValue(_)) => Ok(self.register_evaluated_expr(expr.clone(), span)),
Expand Down

0 comments on commit 2ef3289

Please sign in to comment.