mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 14:02:06 +03:00
Remove LocalInternedString::as_interned_str().
It's unused.
This commit is contained in:
@@ -1169,12 +1169,6 @@ pub fn intern(string: &str) -> Self {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn as_interned_str(self) -> InternedString {
|
||||
InternedString {
|
||||
symbol: Symbol::intern(self.string)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get(&self) -> &str {
|
||||
// This returns a valid string since we ensure that `self` outlives the interner
|
||||
|
||||
Reference in New Issue
Block a user