File tree 3 files changed +3
-11
lines changed
3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -1003,7 +1003,7 @@ fn preprocess_link(
1003
1003
assert ! ( !path_str. contains( [ '<' , '>' ] . as_slice( ) ) ) ;
1004
1004
1005
1005
// The link is not an intra-doc link if it still contains spaces after stripping generics.
1006
- if can_be_url && path_str. contains ( ' ' ) {
1006
+ if path_str. contains ( ' ' ) {
1007
1007
return None ;
1008
1008
}
1009
1009
Original file line number Diff line number Diff line change 5
5
6
6
/// this is not a link to [`example.com`] //~ERROR unresolved link
7
7
///
8
- /// this link [`has spaces in it`]. //~ERROR unresolved link
8
+ /// this link [`has spaces in it`].
9
9
///
10
10
/// attempted link to method: [`Foo.bar()`] //~ERROR unresolved link
11
11
///
Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ note: the lint level is defined here
11
11
LL | #![deny(rustdoc::broken_intra_doc_links)]
12
12
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
13
14
- error: unresolved link to `has spaces in it`
15
- --> $DIR/bad-intra-doc.rs:8:17
16
- |
17
- LL | /// this link [`has spaces in it`].
18
- | ^^^^^^^^^^^^^^^^ no item named `has spaces in it` in scope
19
- |
20
- = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
21
-
22
14
error: unresolved link to `Foo.bar`
23
15
--> $DIR/bad-intra-doc.rs:10:33
24
16
|
@@ -35,5 +27,5 @@ LL | /// classic broken intra-doc link: [`Bar`]
35
27
|
36
28
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
37
29
38
- error: aborting due to 4 previous errors
30
+ error: aborting due to 3 previous errors
39
31
You can’t perform that action at this time.
0 commit comments