]> git.lizzy.rs Git - rust.git/commitdiff
Update doc-ui tests
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 30 Nov 2018 15:20:07 +0000 (16:20 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 4 Dec 2018 09:06:05 +0000 (10:06 +0100)
src/test/rustdoc-ui/doc-without-codeblock.rs
src/test/rustdoc-ui/doc-without-codeblock.stderr
src/test/rustdoc-ui/intra-link-span-ice-55723.rs
src/test/rustdoc-ui/private-item-doc-test.rs

index e047b272c41604e147aeb7f1cfc482ac5102f933..645deff334b8bda74b83a321c73609e5d7c7351a 100644 (file)
@@ -1,3 +1,4 @@
+//~ ERROR Missing code example in this documentation
 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 #![deny(missing_doc_code_examples)]
 
 /// Some docs.
+//~^ ERROR Missing code example in this documentation
 pub struct Foo;
 
 /// And then, the princess died.
+//~^ ERROR Missing code example in this documentation
 pub mod foo {
     /// Or maybe not because she saved herself!
+    //~^ ERROR Missing code example in this documentation
     pub fn bar() {}
 }
index ba5bb7fc0b119963e4f840fdccb5b347a57b5f65..f3efc65405049d3ba738c60fc39fb20948898c85 100644 (file)
@@ -1,25 +1,25 @@
 error: Missing code example in this documentation
    |
 note: lint level defined here
-  --> $DIR/doc-without-codeblock.rs:11:9
+  --> $DIR/doc-without-codeblock.rs:12:9
    |
 LL | #![deny(missing_doc_code_examples)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: Missing code example in this documentation
-  --> $DIR/doc-without-codeblock.rs:13:1
+  --> $DIR/doc-without-codeblock.rs:14:1
    |
 LL | /// Some docs.
    | ^^^^^^^^^^^^^^
 
 error: Missing code example in this documentation
-  --> $DIR/doc-without-codeblock.rs:16:1
+  --> $DIR/doc-without-codeblock.rs:18:1
    |
 LL | /// And then, the princess died.
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: Missing code example in this documentation
-  --> $DIR/doc-without-codeblock.rs:18:5
+  --> $DIR/doc-without-codeblock.rs:21:5
    |
 LL |     /// Or maybe not because she saved herself!
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
index 12e59a4813f8539d01bfa71ca62c59c09c4e91a1..c701548faaa9226c10348da3ca266a1900644c50 100644 (file)
@@ -17,8 +17,9 @@
 // https://github.com/rust-lang/rust/issues/55723
 
 /// ## For example:
-///  
+///
 /// (arr[i])
+//~^ ERROR `[i]` cannot be resolved, ignoring it...
 pub fn test_ice() {
     unimplemented!();
 }
index 5a13fe359f5270869907d13e3755c11bc24295ec..771dc3bd351128e392734d4f8dfc14ce48aa6272 100644 (file)
@@ -16,5 +16,6 @@ mod foo {
     /// ```
     /// assert!(false);
     /// ```
+    //~^^^^^ ERROR Documentation test in private item
     fn bar() {}
 }