We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e08576 commit c877989Copy full SHA for c877989
src/libsyntax_pos/symbol.rs
@@ -1131,6 +1131,7 @@ impl LocalInternedString {
1131
}
1132
1133
1134
+ #[inline]
1135
pub fn get(&self) -> &str {
1136
// This returns a valid string since we ensure that `self` outlives the interner
1137
// by creating the interner on a thread which outlives threads which can access it.
@@ -1144,6 +1145,7 @@ impl<U: ?Sized> std::convert::AsRef<U> for LocalInternedString
1144
1145
where
1146
str: std::convert::AsRef<U>
1147
{
1148
1149
fn as_ref(&self) -> &U {
1150
self.string.as_ref()
1151
@@ -1184,6 +1186,7 @@ impl !Sync for LocalInternedString {}
1184
1186
1185
1187
impl std::ops::Deref for LocalInternedString {
1188
type Target = str;
1189
1190
fn deref(&self) -> &str { self.string }
1191
1192
0 commit comments