[Clippy] Swap unnecessary_owned_empty_strings to use diagnostic ite… · qinheping/verify-rust-std@1b0be2a (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

qinheping / verify-rust-std Public

forked from model-checking/verify-rust-std

Additional navigation options

Commit 1b0be2a

Browse files

GnomedDevGnomedDev

committed

[Clippy] Swap unnecessary_owned_empty_strings to use diagnostic item instead of path

1 parent 9edfe1d commit 1b0be2a

File tree

1 file changed

1

-

0

lines changed

1 file changed

1

-

0

lines changed

‎alloc/src/string.rs‎

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -440,6 +440,7 @@ impl String {
440 440 /// ```
441 441 #[inline]
442 442 #[rustc_const_stable(feature = "const_string_new", since = "1.39.0")]
443 +#[cfg_attr(not(test), rustc_diagnostic_item = "string_new")]
443 444 #[stable(feature = "rust1", since = "1.0.0")]
444 445 #[must_use]
445 446 pub const fn new() -> String {

0 commit comments

Comments

(0)