diff options
| author | Urgau <3616612+Urgau@users.noreply.github.com> | 2025-02-18 18:34:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 18:34:18 +0100 |
| commit | b7c2da2231baa52353df219b7964bbd97eda1765 (patch) | |
| tree | 541451f55e7b7cccb7ab3f86708202c88d2169b4 /library/core | |
| parent | 61f04328db68eab599a64b120ba4d63b425df257 (diff) | |
| parent | a72402a0f950e92758600aa7996899b5241bb6a5 (diff) | |
| download | rust-b7c2da2231baa52353df219b7964bbd97eda1765.tar.gz rust-b7c2da2231baa52353df219b7964bbd97eda1765.zip | |
Rollup merge of #137214 - cyrgani:clippy_diagnostic_items, r=compiler-errors
add last std diagnostic items for clippy Part of https://github.com/rust-lang/rust-clippy/issues/5393. Add diagnostic item attributes to the items in `std` and `core` where clippy currently uses hardcoded paths (https://github.com/rust-lang/rust-clippy/blob/master/clippy_utils/src/paths.rs).
Diffstat (limited to 'library/core')
| -rw-r--r-- | library/core/src/char/methods.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs index ccfdbf0eb70..34f5c3e94bc 100644 --- a/library/core/src/char/methods.rs +++ b/library/core/src/char/methods.rs @@ -1168,6 +1168,7 @@ impl char { #[must_use] #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[rustc_const_stable(feature = "const_char_is_ascii", since = "1.32.0")] + #[cfg_attr(not(test), rustc_diagnostic_item = "char_is_ascii")] #[inline] pub const fn is_ascii(&self) -> bool { *self as u32 <= 0x7F |
