]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/types.rs
Rollup merge of #93660 - aDotInTheVoid:rustdoc-type-tests, r=CraftSpider
[rust.git] / library / test / src / types.rs
index 37bb38fb0df4efb64d557d31d515e83cd2a7183d..43e5a10ebbe95a02f6184410fb9368e7556a1f1f 100644 (file)
@@ -118,10 +118,11 @@ pub struct TestDesc {
     pub name: TestName,
     pub ignore: bool,
     pub should_panic: options::ShouldPanic,
-    pub allow_fail: bool,
     pub compile_fail: bool,
     pub no_run: bool,
     pub test_type: TestType,
+    #[cfg(bootstrap)]
+    pub allow_fail: bool,
 }
 
 impl TestDesc {
@@ -150,9 +151,6 @@ pub fn test_mode(&self) -> Option<&'static str> {
             }
             options::ShouldPanic::No => {}
         }
-        if self.allow_fail {
-            return Some("allow fail");
-        }
         if self.compile_fail {
             return Some("compile fail");
         }