From 0931358d88754a755e67f29ab74d243b5ae30347 Mon Sep 17 00:00:00 2001 From: ohno418 Date: Sun, 14 Aug 2022 19:33:32 +0900 Subject: [PATCH] Impl Debug for some structs of rustbuild --- src/bootstrap/flags.rs | 1 + src/bootstrap/setup.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 39d9ce1621ba2..1edb513f0b62d 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -80,6 +80,7 @@ pub struct Flags { pub llvm_profile_generate: bool, } +#[derive(Debug)] #[cfg_attr(test, derive(Clone))] pub enum Subcommand { Build { diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs index a5a39a5a3cfc6..eb7da1bda73cb 100644 --- a/src/bootstrap/setup.rs +++ b/src/bootstrap/setup.rs @@ -11,7 +11,7 @@ use std::{ io::{self, Write}, }; -#[derive(Clone, Copy, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Profile { Compiler, Codegen,