]> git.lizzy.rs Git - rust.git/blob - src/bootstrap/toolstate.rs
Auto merge of #57101 - o01eg:fix-57014, r=alexcrichton
[rust.git] / src / bootstrap / toolstate.rs
1 #[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
2 #[serde(rename_all = "kebab-case")]
3 /// Whether a tool can be compiled, tested or neither
4 pub enum ToolState {
5     /// The tool compiles successfully, but the test suite fails
6     TestFail = 1,
7     /// The tool compiles successfully and its test suite passes
8     TestPass = 2,
9     /// The tool can't even be compiled
10     BuildFail = 0,
11 }
12
13 impl Default for ToolState {
14     fn default() -> Self {
15         // err on the safe side
16         ToolState::BuildFail
17     }
18 }