Update test
This commit is contained in:
1
src/test/ui/extern/external-doc-error.rs
vendored
1
src/test/ui/extern/external-doc-error.rs
vendored
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#[doc(include = "not-a-file.md")]
|
#[doc(include = "not-a-file.md")]
|
||||||
pub struct SomeStruct; //~^ ERROR couldn't read
|
pub struct SomeStruct; //~^ ERROR couldn't read
|
||||||
//~| HELP external doc paths are relative to the crate root
|
|
||||||
|
|
||||||
#[doc(include = "auxiliary/invalid-utf8.txt")]
|
#[doc(include = "auxiliary/invalid-utf8.txt")]
|
||||||
pub struct InvalidUtf8; //~^ ERROR wasn't a utf-8 file
|
pub struct InvalidUtf8; //~^ ERROR wasn't a utf-8 file
|
||||||
|
|||||||
12
src/test/ui/extern/external-doc-error.stderr
vendored
12
src/test/ui/extern/external-doc-error.stderr
vendored
@@ -3,35 +3,33 @@ error: couldn't read $DIR/not-a-file.md: $FILE_NOT_FOUND_MSG (os error 2)
|
|||||||
|
|
|
|
||||||
LL | #[doc(include = "not-a-file.md")]
|
LL | #[doc(include = "not-a-file.md")]
|
||||||
| ^^^^^^^^^^^^^^^ couldn't read file
|
| ^^^^^^^^^^^^^^^ couldn't read file
|
||||||
|
|
|
||||||
= help: external doc paths are relative to the crate root
|
|
||||||
|
|
||||||
error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file
|
error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file
|
||||||
--> $DIR/external-doc-error.rs:9:17
|
--> $DIR/external-doc-error.rs:8:17
|
||||||
|
|
|
|
||||||
LL | #[doc(include = "auxiliary/invalid-utf8.txt")]
|
LL | #[doc(include = "auxiliary/invalid-utf8.txt")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8
|
||||||
|
|
||||||
error: expected path to external documentation
|
error: expected path to external documentation
|
||||||
--> $DIR/external-doc-error.rs:12:7
|
--> $DIR/external-doc-error.rs:11:7
|
||||||
|
|
|
|
||||||
LL | #[doc(include)]
|
LL | #[doc(include)]
|
||||||
| ^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
| ^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
||||||
|
|
||||||
error: expected path to external documentation
|
error: expected path to external documentation
|
||||||
--> $DIR/external-doc-error.rs:17:7
|
--> $DIR/external-doc-error.rs:16:7
|
||||||
|
|
|
|
||||||
LL | #[doc(include("../README.md"))]
|
LL | #[doc(include("../README.md"))]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"`
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"`
|
||||||
|
|
||||||
error: expected path to external documentation
|
error: expected path to external documentation
|
||||||
--> $DIR/external-doc-error.rs:22:7
|
--> $DIR/external-doc-error.rs:21:7
|
||||||
|
|
|
|
||||||
LL | #[doc(include = 123)]
|
LL | #[doc(include = 123)]
|
||||||
| ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
| ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
||||||
|
|
||||||
error: expected path to external documentation
|
error: expected path to external documentation
|
||||||
--> $DIR/external-doc-error.rs:27:7
|
--> $DIR/external-doc-error.rs:26:7
|
||||||
|
|
|
|
||||||
LL | #[doc(include(123))]
|
LL | #[doc(include(123))]
|
||||||
| ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
| ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
|
||||||
|
|||||||
Reference in New Issue
Block a user