diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-01-12 15:06:44 +0200 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-01-12 15:09:16 +0200 |
| commit | 9c5b99dc92005d52d7b877f8501bc90da767c5df (patch) | |
| tree | 0752f99129bfad21e60f3dae5fc53133cd84fbcb | |
| parent | e54264c509ae6a93f0b1f1b2d36f7c9aabc5e681 (diff) | |
| download | rust-9c5b99dc92005d52d7b877f8501bc90da767c5df.tar.gz rust-9c5b99dc92005d52d7b877f8501bc90da767c5df.zip | |
Deny `clippy:;four_forward_slashes` and fix the only occurrence
| -rw-r--r-- | compiler/rustc_resolve/src/rustdoc.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/src/core/build_steps/clippy.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/rustdoc.rs b/compiler/rustc_resolve/src/rustdoc.rs index 84e43d0e016..7998596c59e 100644 --- a/compiler/rustc_resolve/src/rustdoc.rs +++ b/compiler/rustc_resolve/src/rustdoc.rs @@ -347,7 +347,7 @@ pub fn strip_generics_from_path(path_str: &str) -> Result<Box<str>, MalformedGen /// Returns whether the first doc-comment is an inner attribute. /// -//// If there are no doc-comments, return true. +/// If there are no doc-comments, return true. /// FIXME(#78591): Support both inner and outer attributes on the same item. pub fn inner_docs(attrs: &[impl AttributeExt]) -> bool { attrs diff --git a/src/bootstrap/src/core/build_steps/clippy.rs b/src/bootstrap/src/core/build_steps/clippy.rs index 4d124cefa1d..57efdaf3113 100644 --- a/src/bootstrap/src/core/build_steps/clippy.rs +++ b/src/bootstrap/src/core/build_steps/clippy.rs @@ -395,6 +395,7 @@ impl Step for CI { "clippy::correctness".into(), "clippy::clone_on_ref_ptr".into(), "clippy::format_in_format_args".into(), + "clippy::four_forward_slashes".into(), ], forbid: vec![], }; |
