Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a9c5ae

Browse files
committedSep 10, 2020
Add hard-to-fix broken links to linkchecker exception
1 parent 29efeb7 commit 3a9c5ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/tools/linkchecker/main.rs

+10
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const LINKCHECK_EXCEPTIONS: &[(&str, &[&str])] = &[
4242
"#method.get_unchecked_mut",
4343
],
4444
),
45+
// FIXME(#74672): "Read more" is broken
46+
("std/primitive.usize.html", &["#tymethod.from_u64"]),
47+
("std/primitive.u32.html", &["#tymethod.from_u64"]),
48+
("std/primitive.u64.html", &["#tymethod.from_u64"]),
4549
// These try to link to std::collections, but are defined in alloc
4650
// https://github.com/rust-lang/rust/issues/74481
4751
("std/collections/btree_map/struct.BTreeMap.html", &["#insert-and-complex-keys"]),
@@ -142,6 +146,12 @@ fn is_exception(file: &Path, link: &str) -> bool {
142146
if let Some(entry) = LINKCHECK_EXCEPTIONS.iter().find(|&(f, _)| file.ends_with(f)) {
143147
entry.1.contains(&link)
144148
} else {
149+
// FIXME(#63351): Concat trait in alloc/slice reexported in primitive page
150+
if file.ends_with("std/primitive.slice.html") {
151+
if link.ends_with("std/primitive.slice.html") {
152+
return true;
153+
}
154+
}
145155
false
146156
}
147157
}

0 commit comments

Comments
 (0)
Please sign in to comment.