We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_owned_empty_strings
1 parent 9edfe1d commit 1b0be2aCopy full SHA for 1b0be2a
alloc/src/string.rs
@@ -440,6 +440,7 @@ impl String {
440
/// ```
441
#[inline]
442
#[rustc_const_stable(feature = "const_string_new", since = "1.39.0")]
443
+ #[cfg_attr(not(test), rustc_diagnostic_item = "string_new")]
444
#[stable(feature = "rust1", since = "1.0.0")]
445
#[must_use]
446
pub const fn new() -> String {
0 commit comments