Skip to content

Commit 9c5b99d

Browse files
committed
Deny clippy:;four_forward_slashes and fix the only occurrence
1 parent e54264c commit 9c5b99d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_resolve/src/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ pub fn strip_generics_from_path(path_str: &str) -> Result<Box<str>, MalformedGen
347347

348348
/// Returns whether the first doc-comment is an inner attribute.
349349
///
350-
//// If there are no doc-comments, return true.
350+
/// If there are no doc-comments, return true.
351351
/// FIXME(#78591): Support both inner and outer attributes on the same item.
352352
pub fn inner_docs(attrs: &[impl AttributeExt]) -> bool {
353353
attrs

src/bootstrap/src/core/build_steps/clippy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ impl Step for CI {
395395
"clippy::correctness".into(),
396396
"clippy::clone_on_ref_ptr".into(),
397397
"clippy::format_in_format_args".into(),
398+
"clippy::four_forward_slashes".into(),
398399
],
399400
forbid: vec![],
400401
};

0 commit comments

Comments
 (0)