]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/doctest.rs
Ensure that queries only return Copy types.
[rust.git] / src / librustdoc / doctest.rs
index 024fe6345d295a694b3f2e8b91ac378c4b41795d..6c55721c0dd9422dcd6f03ad8de6c9ca7841662d 100644 (file)
@@ -659,7 +659,7 @@ fn drop(&mut self) {
     } else {
         let returns_result = everything_else.trim_end().ends_with("(())");
         // Give each doctest main function a unique name.
-        // This is for example needed for the tooling around `-Z instrument-coverage`.
+        // This is for example needed for the tooling around `-C instrument-coverage`.
         let inner_fn_name = if let Some(test_id) = test_id {
             format!("_doctest_main_{}", test_id)
         } else {
@@ -684,7 +684,7 @@ fn drop(&mut self) {
         };
         // Note on newlines: We insert a line/newline *before*, and *after*
         // the doctest and adjust the `line_offset` accordingly.
-        // In the case of `-Z instrument-coverage`, this means that the generated
+        // In the case of `-C instrument-coverage`, this means that the generated
         // inner `main` function spans from the doctest opening codeblock to the
         // closing one. For example
         // /// ``` <- start of the inner main
@@ -951,10 +951,11 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) {
                 },
                 // compiler failures are test failures
                 should_panic: test::ShouldPanic::No,
-                allow_fail: config.allow_fail,
                 compile_fail: config.compile_fail,
                 no_run,
                 test_type: test::TestType::DocTest,
+                #[cfg(bootstrap)]
+                allow_fail: false,
             },
             testfn: test::DynTestFn(box move || {
                 let report_unused_externs = |uext| {