From b2dc66e63fe6700e311bb2c1a0e16949d0ca2c1d Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Wed, 18 Sep 2024 21:24:42 +0100 Subject: [PATCH] [Clippy] Swap `manual_main_separator_str` to use diagnostic item instead of path --- std/src/path.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/std/src/path.rs b/std/src/path.rs index 2ba3a9cdca251..aa9f63d915a24 100644 --- a/std/src/path.rs +++ b/std/src/path.rs @@ -263,6 +263,7 @@ pub fn is_separator(c: char) -> bool { /// /// For example, `/` on Unix and `\` on Windows. #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "path_main_separator")] pub const MAIN_SEPARATOR: char = crate::sys::path::MAIN_SEP; /// The primary separator of path components for the current platform.