Skip to content

Commit 0c540ee

Browse files
authored
Rollup merge of #100524 - ohno418:impl-debug-for-some-rustbuild-structs, r=Mark-Simulacrum
Impl `Debug` for some structs of rustbuild A small patch to impl `Debug` for some structs of rustbuild to make debugging easier. (I was trying to impl `Debug` for the `Config` struct, but found to have a bit more things to do. So gave up for now.)
2 parents 7f102c5 + 0931358 commit 0c540ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap/flags.rs

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub struct Flags {
8080
pub llvm_profile_generate: bool,
8181
}
8282

83+
#[derive(Debug)]
8384
#[cfg_attr(test, derive(Clone))]
8485
pub enum Subcommand {
8586
Build {

src/bootstrap/setup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
io::{self, Write},
1212
};
1313

14-
#[derive(Clone, Copy, Eq, PartialEq)]
14+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
1515
pub enum Profile {
1616
Compiler,
1717
Codegen,

0 commit comments

Comments
 (0)