Stabilize non_autolinks lint
This commit is contained in:
parent
b1b0a1597c
commit
fe1baa6498
1 changed files with 1 additions and 8 deletions
|
|
@ -48,14 +48,7 @@ impl<'a, 'tcx> NonAutolinksLinter<'a, 'tcx> {
|
|||
}
|
||||
|
||||
crate fn check_non_autolinks(krate: Crate, cx: &mut DocContext<'_>) -> Crate {
|
||||
if !cx.tcx.sess.is_nightly_build() {
|
||||
krate
|
||||
} else {
|
||||
let mut coll =
|
||||
NonAutolinksLinter { cx, regex: Regex::new(URL_REGEX).expect("failed to build regex") };
|
||||
|
||||
coll.fold_crate(krate)
|
||||
}
|
||||
NonAutolinksLinter::new(cx).fold_crate(krate)
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> DocFolder for NonAutolinksLinter<'a, 'tcx> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue