Skip to content

Commit fe1baa6

Browse files
committed
Stabilize non_autolinks lint
1 parent b1b0a15 commit fe1baa6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/librustdoc/passes/non_autolinks.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,7 @@ impl<'a, 'tcx> NonAutolinksLinter<'a, 'tcx> {
4848
}
4949

5050
crate fn check_non_autolinks(krate: Crate, cx: &mut DocContext<'_>) -> Crate {
51-
if !cx.tcx.sess.is_nightly_build() {
52-
krate
53-
} else {
54-
let mut coll =
55-
NonAutolinksLinter { cx, regex: Regex::new(URL_REGEX).expect("failed to build regex") };
56-
57-
coll.fold_crate(krate)
58-
}
51+
NonAutolinksLinter::new(cx).fold_crate(krate)
5952
}
6053

6154
impl<'a, 'tcx> DocFolder for NonAutolinksLinter<'a, 'tcx> {

0 commit comments

Comments
 (0)