Skip to content

Commit b658e77

Browse files
committed
Auto merge of #98914 - fee1-dead-contrib:min-deref-patterns, r=compiler-errors
Minimal implementation of implicit deref patterns for Strings cc `@compiler-errors` `@BoxyUwU` rust-lang/lang-team#88 #87121 ~~I forgot to add a feature gate, will do so in a minute~~ Done
2 parents 52c7e65 + 0862058 commit b658e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ use crate::vec::Vec;
362362
/// [`Deref`]: core::ops::Deref "ops::Deref"
363363
/// [`as_str()`]: String::as_str
364364
#[derive(PartialOrd, Eq, Ord)]
365-
#[cfg_attr(not(test), rustc_diagnostic_item = "String")]
366365
#[stable(feature = "rust1", since = "1.0.0")]
366+
#[cfg_attr(all(not(bootstrap), not(test)), lang = "String")]
367367
pub struct String {
368368
vec: Vec<u8>,
369369
}

0 commit comments

Comments
 (0)