Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23f5431

Browse files
committed
Cleanup linkchecker whitelist
linkchecker is no longer run on the compiler docs so they can be removed from the whitelist.
1 parent 1ed41b0 commit 23f5431

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

src/tools/linkchecker/main.rs

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -122,33 +122,22 @@ fn check(cache: &mut Cache, root: &Path, file: &Path, errors: &mut bool) -> Opti
122122
// Unfortunately we're not 100% full of valid links today to we need a few
123123
// whitelists to get this past `make check` today.
124124
// FIXME(#32129)
125-
if file.ends_with("std/string/struct.String.html")
126-
|| file.ends_with("interpret/struct.ImmTy.html")
127-
|| file.ends_with("ast/struct.ThinVec.html")
128-
|| file.ends_with("util/struct.ThinVec.html")
129-
|| file.ends_with("layout/struct.TyLayout.html")
130-
|| file.ends_with("humantime/struct.Timestamp.html")
131-
|| file.ends_with("log/index.html")
132-
|| file.ends_with("ty/struct.Slice.html")
133-
|| file.ends_with("ty/enum.Attributes.html")
134-
|| file.ends_with("ty/struct.SymbolName.html")
135-
|| file.ends_with("io/struct.IoSlice.html")
136-
|| file.ends_with("io/struct.IoSliceMut.html")
125+
if file.ends_with("std/io/struct.IoSlice.html")
126+
|| file.ends_with("std/string/struct.String.html")
137127
{
138128
return None;
139129
}
140130
// FIXME(#32553)
141-
if file.ends_with("string/struct.String.html") {
131+
if file.ends_with("alloc/string/struct.String.html") {
142132
return None;
143133
}
144134
// FIXME(#32130)
145-
if file.ends_with("btree_set/struct.BTreeSet.html")
146-
|| file.ends_with("struct.BTreeSet.html")
147-
|| file.ends_with("btree_map/struct.BTreeMap.html")
148-
|| file.ends_with("hash_map/struct.HashMap.html")
149-
|| file.ends_with("hash_set/struct.HashSet.html")
150-
|| file.ends_with("sync/struct.Lrc.html")
151-
|| file.ends_with("sync/struct.RwLock.html")
135+
if file.ends_with("alloc/collections/btree_map/struct.BTreeMap.html")
136+
|| file.ends_with("alloc/collections/btree_set/struct.BTreeSet.html")
137+
|| file.ends_with("std/collections/btree_map/struct.BTreeMap.html")
138+
|| file.ends_with("std/collections/btree_set/struct.BTreeSet.html")
139+
|| file.ends_with("std/collections/hash_map/struct.HashMap.html")
140+
|| file.ends_with("std/collections/hash_set/struct.HashSet.html")
152141
{
153142
return None;
154143
}

0 commit comments

Comments
 (0)