Rollup merge of #58096 - h-michael:linkchecker-2018, r=Centril

Transition linkchecker to 2018 edition

Transition `src/tools/linkchecker` to Rust 2018.

#58099
This commit is contained in:
kennytm 2019-02-06 00:28:49 +09:00 committed by GitHub
commit da3a2fb980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@
name = "linkchecker"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition = "2018"
[[bin]]
name = "linkchecker"

View file

@ -14,6 +14,8 @@
//! A few whitelisted exceptions are allowed as there's known bugs in rustdoc,
//! but this should catch the majority of "broken link" cases.
#![deny(rust_2018_idioms)]
use std::collections::hash_map::Entry;
use std::collections::{HashMap, HashSet};
use std::env;
@ -21,7 +23,7 @@ use std::fs;
use std::path::{Path, PathBuf, Component};
use std::rc::Rc;
use Redirect::*;
use crate::Redirect::*;
macro_rules! t {
($e:expr) => (match $e {