Skip to content

Commit

Permalink
Auto merge of #98914 - fee1-dead-contrib:min-deref-patterns, r=compil…
Browse files Browse the repository at this point in the history
…er-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
  • Loading branch information
bors committed Nov 20, 2022
2 parents 52c7e65 + 0862058 commit b658e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ use crate::vec::Vec;
/// [`Deref`]: core::ops::Deref "ops::Deref"
/// [`as_str()`]: String::as_str
#[derive(PartialOrd, Eq, Ord)]
#[cfg_attr(not(test), rustc_diagnostic_item = "String")]
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(all(not(bootstrap), not(test)), lang = "String")]
pub struct String {
vec: Vec<u8>,
}
Expand Down

0 comments on commit b658e77

Please sign in to comment.