[meta] Add some Debug derives

This commit is contained in:
bjorn3
2019-06-29 16:23:07 +02:00
committed by Dan Gohman
parent a43a3a5e9f
commit 83ac6dd4d4
3 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ use cranelift_entity::{entity_impl, PrimaryMap};
use std::fmt;
#[derive(Debug)]
pub enum Expr {
Var(VarIndex),
Literal(Literal),
@@ -363,6 +364,7 @@ impl VarPool {
///
/// An `Apply` AST expression is created by using function call syntax on instructions. This
/// applies to both bound and unbound polymorphic instructions.
#[derive(Debug)]
pub struct Apply {
pub inst: Instruction,
pub args: Vec<Expr>,