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.
Symbol::decode
Interner::intern
1 parent ab90617 commit c02d689Copy full SHA for c02d689
src/librustc_span/symbol.rs
@@ -993,6 +993,7 @@ impl Encodable for Symbol {
993
}
994
995
impl Decodable for Symbol {
996
+ #[inline]
997
fn decode<D: Decoder>(d: &mut D) -> Result<Symbol, D::Error> {
998
Ok(Symbol::intern(&d.read_str()?))
999
@@ -1031,6 +1032,7 @@ impl Interner {
1031
1032
1033
1034
1035
1036
pub fn intern(&mut self, string: &str) -> Symbol {
1037
if let Some(&name) = self.names.get(string) {
1038
return name;
0 commit comments