@@ -194,6 +194,7 @@ impl ::std::str::FromStr for DiagnosticCode {
194
194
pub enum FailureReason {
195
195
Unknown ,
196
196
OOM ,
197
+ NoSpace ,
197
198
Timeout ,
198
199
ICE ,
199
200
NetworkAccess ,
@@ -209,6 +210,7 @@ impl ::std::fmt::Display for FailureReason {
209
210
match self {
210
211
FailureReason :: Unknown => write ! ( f, "unknown" ) ,
211
212
FailureReason :: OOM => write ! ( f, "oom" ) ,
213
+ FailureReason :: NoSpace => write ! ( f, "no-space" ) ,
212
214
FailureReason :: Timeout => write ! ( f, "timeout" ) ,
213
215
FailureReason :: ICE => write ! ( f, "ice" ) ,
214
216
FailureReason :: NetworkAccess => write ! ( f, "network-access" ) ,
@@ -265,6 +267,7 @@ impl ::std::str::FromStr for FailureReason {
265
267
"oom" => Ok ( FailureReason :: OOM ) ,
266
268
"timeout" => Ok ( FailureReason :: Timeout ) ,
267
269
"ice" => Ok ( FailureReason :: ICE ) ,
270
+ "no-space" => Ok ( FailureReason :: NoSpace ) ,
268
271
_ => bail ! ( "unexpected value: {}" , s) ,
269
272
}
270
273
}
@@ -275,6 +278,7 @@ impl FailureReason {
275
278
pub ( crate ) fn is_spurious ( & self ) -> bool {
276
279
match * self {
277
280
FailureReason :: OOM
281
+ | FailureReason :: NoSpace
278
282
| FailureReason :: Timeout
279
283
| FailureReason :: NetworkAccess
280
284
| FailureReason :: CompilerDiagnosticChange => true ,
@@ -351,6 +355,7 @@ mod tests {
351
355
"build-fail:compiler-error(001)" => BuildFail ( CompilerError ( btreeset![ "001" . parse( ) . unwrap( ) ] ) ) ,
352
356
"build-fail:oom" => BuildFail ( OOM ) ,
353
357
"build-fail:ice" => BuildFail ( ICE ) ,
358
+ "build-fail:no-space" => BuildFail ( NoSpace ) ,
354
359
"test-fail:timeout" => TestFail ( Timeout ) ,
355
360
"test-pass" => TestPass ,
356
361
"error" => Error ,
0 commit comments