This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
- // ignore-tidy-end-whitespace
2
-
3
1
#![ deny( intra_doc_link_resolution_failure) ]
4
2
5
3
// An error in calculating spans while reporting intra-doc link resolution errors caused rustdoc to
Original file line number Diff line number Diff line change 1
1
error: `[i]` cannot be resolved, ignoring it...
2
- --> $DIR/intra-link-span-ice-55723.rs:11 :10
2
+ --> $DIR/intra-link-span-ice-55723.rs:9 :10
3
3
|
4
4
LL | /// (arr[i])
5
5
| ^ cannot be resolved, ignoring
6
6
|
7
7
note: lint level defined here
8
- --> $DIR/intra-link-span-ice-55723.rs:3 :9
8
+ --> $DIR/intra-link-span-ice-55723.rs:1 :9
9
9
|
10
10
LL | #![deny(intra_doc_link_resolution_failure)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1
1
// compile-flags: -Z continue-parse-after-error
2
2
3
-
4
- // ignore-tidy-tab
5
-
6
3
static FOO : & ' static [ u8 ] = b"\f " ; //~ ERROR unknown byte escape
7
4
8
5
pub fn main ( ) {
Original file line number Diff line number Diff line change 1
1
error: unknown byte escape: f
2
- --> $DIR/byte-string-literals.rs:6 :32
2
+ --> $DIR/byte-string-literals.rs:3 :32
3
3
|
4
4
LL | static FOO: &'static [u8] = b"\f";
5
5
| ^ unknown byte escape
6
6
7
7
error: unknown byte escape: f
8
- --> $DIR/byte-string-literals.rs:9 :8
8
+ --> $DIR/byte-string-literals.rs:6 :8
9
9
|
10
10
LL | b"\f";
11
11
| ^ unknown byte escape
12
12
13
13
error: invalid character in numeric character escape: Z
14
- --> $DIR/byte-string-literals.rs:10 :10
14
+ --> $DIR/byte-string-literals.rs:7 :10
15
15
|
16
16
LL | b"\x0Z";
17
17
| ^
18
18
19
19
error: byte constant must be ASCII. Use a \xHH escape for a non-ASCII byte
20
- --> $DIR/byte-string-literals.rs:11 :7
20
+ --> $DIR/byte-string-literals.rs:8 :7
21
21
|
22
22
LL | b"é";
23
23
| ^
24
24
25
25
error: unterminated double quote byte string
26
- --> $DIR/byte-string-literals.rs:12 :7
26
+ --> $DIR/byte-string-literals.rs:9 :7
27
27
|
28
28
LL | b"a
29
29
| _______^
You can’t perform that action at this time.
0 commit comments