Skip to content

Commit 218ab4c

Browse files
Update test
1 parent 7c42259 commit 218ab4c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/test/ui/extern/external-doc-error.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#[doc(include = "not-a-file.md")]
66
pub struct SomeStruct; //~^ ERROR couldn't read
7-
//~| HELP external doc paths are relative to the crate root
87

98
#[doc(include = "auxiliary/invalid-utf8.txt")]
109
pub struct InvalidUtf8; //~^ ERROR wasn't a utf-8 file

src/test/ui/extern/external-doc-error.stderr

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,33 @@ error: couldn't read $DIR/not-a-file.md: $FILE_NOT_FOUND_MSG (os error 2)
33
|
44
LL | #[doc(include = "not-a-file.md")]
55
| ^^^^^^^^^^^^^^^ couldn't read file
6-
|
7-
= help: external doc paths are relative to the crate root
86

97
error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file
10-
--> $DIR/external-doc-error.rs:9:17
8+
--> $DIR/external-doc-error.rs:8:17
119
|
1210
LL | #[doc(include = "auxiliary/invalid-utf8.txt")]
1311
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8
1412

1513
error: expected path to external documentation
16-
--> $DIR/external-doc-error.rs:12:7
14+
--> $DIR/external-doc-error.rs:11:7
1715
|
1816
LL | #[doc(include)]
1917
| ^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
2018

2119
error: expected path to external documentation
22-
--> $DIR/external-doc-error.rs:17:7
20+
--> $DIR/external-doc-error.rs:16:7
2321
|
2422
LL | #[doc(include("../README.md"))]
2523
| ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"`
2624

2725
error: expected path to external documentation
28-
--> $DIR/external-doc-error.rs:22:7
26+
--> $DIR/external-doc-error.rs:21:7
2927
|
3028
LL | #[doc(include = 123)]
3129
| ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
3230

3331
error: expected path to external documentation
34-
--> $DIR/external-doc-error.rs:27:7
32+
--> $DIR/external-doc-error.rs:26:7
3533
|
3634
LL | #[doc(include(123))]
3735
| ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`

0 commit comments

Comments
 (0)