Skip to content

Commit deed3f0

Browse files
authored
Rollup merge of rust-lang#81764 - jyn514:lint-links, r=GuillaumeGomez
Stabilize `rustdoc::bare_urls` lint Closes rust-lang#77501. Closes rust-lang#83598.
2 parents 2c66b1e + 909f22b commit deed3f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ pub mod primitive;
298298
unused_imports,
299299
unsafe_op_in_unsafe_fn
300300
)]
301-
#[allow(rustdoc::non_autolinks)]
301+
#[cfg_attr(bootstrap, allow(rustdoc::non_autolinks))]
302+
#[cfg_attr(not(bootstrap), allow(rustdoc::bare_urls))]
302303
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
303304
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
304305
#[allow(clashing_extern_declarations)]

0 commit comments

Comments
 (0)