diff options
| author | GnomedDev <david2005thomas@gmail.com> | 2024-09-18 21:24:42 +0100 |
|---|---|---|
| committer | GnomedDev <david2005thomas@gmail.com> | 2024-09-19 13:13:20 +0100 |
| commit | 037b9784b68f7e11a05a722b6aa6c768484dec40 (patch) | |
| tree | 599ee13543e718b206443fa4e4086bcb7c54ee44 /library/std/src/path.rs | |
| parent | afe79079144076240a4eb7db70b733ec49a787f7 (diff) | |
| download | rust-037b9784b68f7e11a05a722b6aa6c768484dec40.tar.gz rust-037b9784b68f7e11a05a722b6aa6c768484dec40.zip | |
[Clippy] Swap `manual_main_separator_str` to use diagnostic item instead of path
Diffstat (limited to 'library/std/src/path.rs')
| -rw-r--r-- | library/std/src/path.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 2ba3a9cdca2..aa9f63d915a 100644 --- a/library/std/src/path.rs +++ b/library/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. |
