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.
LocalInternedString::intern
1 parent a1cd79f commit 7a1bc79Copy full SHA for 7a1bc79
src/libsyntax_pos/symbol.rs
@@ -1157,19 +1157,6 @@ pub struct LocalInternedString {
1157
string: &'static str,
1158
}
1159
1160
-impl LocalInternedString {
1161
- /// Maps a string to its interned representation.
1162
- pub fn intern(string: &str) -> Self {
1163
- let string = with_interner(|interner| {
1164
- let symbol = interner.intern(string);
1165
- interner.strings[symbol.0.as_usize()]
1166
- });
1167
- LocalInternedString {
1168
- string: unsafe { std::mem::transmute::<&str, &str>(string) }
1169
- }
1170
1171
-}
1172
-
1173
impl<U: ?Sized> std::convert::AsRef<U> for LocalInternedString
1174
where
1175
str: std::convert::AsRef<U>
0 commit comments