Skip to content

Commit

Permalink
linkchecker: Fix path checks on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 14, 2016
1 parent 8cd1c17 commit 158b854
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/tools/linkchecker/main.rs
Expand Up @@ -76,29 +76,28 @@ fn check(root: &Path, file: &Path, base: &Url, errors: &mut bool) {

// Unfortunately we're not 100% full of valid links today to we need a few
// whitelists to get this past `make check` today.
if let Some(path) = pretty_file.to_str() {
// FIXME(#32129)
if path == "std/string/struct.String.html" {
return
}
// FIXME(#32130)
if path.contains("btree_set/struct.BTreeSet.html") ||
path == "collections/struct.BTreeSet.html" {
return
}
// FIXME(#31948)
if path.contains("ParseFloatError") {
return
}
// FIXME(#32129)
if file.ends_with("std/string/struct.String.html") {
return
}
// FIXME(#32130)
if file.ends_with("btree_set/struct.BTreeSet.html") ||
file.ends_with("collections/struct.BTreeSet.html") {
return
}

if file.ends_with("std/sys/ext/index.html") {
return
}

// currently
if path == "std/sys/ext/index.html" {
if let Some(file) = file.to_str() {
// FIXME(#31948)
if file.contains("ParseFloatError") {
return
}

// weird reexports, but this module is on its way out, so chalk it up to
// "rustdoc weirdness" and move on from there
if path.contains("scoped_tls") {
if file.contains("scoped_tls") {
return
}
}
Expand Down

0 comments on commit 158b854

Please sign in to comment.