From f3fc9f450fd1b603bb5b3c07e098b51cc8a8d2a9 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sun, 21 Mar 2021 21:05:36 +0100 Subject: [PATCH] make ast::Expr Copy --- compiler/parse/src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/parse/src/ast.rs b/compiler/parse/src/ast.rs index 5e39738711..181c7e0915 100644 --- a/compiler/parse/src/ast.rs +++ b/compiler/parse/src/ast.rs @@ -74,7 +74,7 @@ pub enum StrLiteral<'a> { /// we move on to canonicalization, which often needs to allocate more because /// it's doing things like turning local variables into fully qualified symbols. /// Once canonicalization is done, the arena and the input string get dropped. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub enum Expr<'a> { // Number Literals Float(&'a str),