@@ -35,6 +35,21 @@ use html5ever::tokenizer::{
35
35
// [(generated_documentation_page, &[broken_links])]
36
36
#[ rustfmt:: skip]
37
37
const LINKCHECK_EXCEPTIONS : & [ ( & str , & [ & str ] ) ] = & [
38
+ // These link to methods on std::string::String (the type alias),
39
+ // and linkchecker currently cannot deal with that since type alias doc pages
40
+ // seem to be lazily loaded-ish?.
41
+ ( "core/primitive.char.html" , & [ "#method.from_utf8_lossy" ] ) ,
42
+ ( "core/str/fn.from_utf8.html" , & [ "#method.from_utf8" ] ) ,
43
+ ( "core/str/struct.Utf8Chunks.html" , & [ "#method.from_utf8_lossy" ] ) ,
44
+ ( "core/str/struct.Utf8Error.html" , & [ "#method.from_utf8" ] ) ,
45
+ ( "alloc/str/fn.from_utf8.html" , & [ "#method.from_utf8" ] ) ,
46
+ ( "alloc/str/struct.Utf8Chunks.html" , & [ "#method.from_utf8_lossy" ] ) ,
47
+ ( "alloc/str/struct.Utf8Error.html" , & [ "#method.from_utf8" ] ) ,
48
+ ( "std/primitive.char.html" , & [ "#method.from_utf8_lossy" ] ) ,
49
+ ( "std/str/fn.from_utf8.html" , & [ "#method.from_utf8" ] ) ,
50
+ ( "std/str/struct.Utf8Chunks.html" , & [ "#method.from_utf8_lossy" ] ) ,
51
+ ( "std/str/struct.Utf8Error.html" , & [ "#method.from_utf8" ] ) ,
52
+
38
53
// These try to link to std::collections, but are defined in alloc
39
54
// https://github.com/rust-lang/rust/issues/74481
40
55
( "std/collections/btree_map/struct.BTreeMap.html" , & [ "#insert-and-complex-keys" ] ) ,
0 commit comments