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.
1 parent ce45663 commit 9886c23Copy full SHA for 9886c23
compiler/rustc_expand/src/proc_macro_server.rs
@@ -577,7 +577,7 @@ impl server::Literal for Rustc<'_> {
577
}
578
579
// Synthesize a new symbol that includes the minus sign.
580
- let symbol = Symbol::intern(&s[..1 + lit.symbol.len()]);
+ let symbol = Symbol::intern(&s[..1 + lit.symbol.as_str().len()]);
581
lit = token::Lit::new(lit.kind, symbol, lit.suffix);
582
583
compiler/rustc_span/src/symbol.rs
@@ -1642,10 +1642,6 @@ impl Symbol {
1642
self.0.as_u32()
1643
1644
1645
- pub fn len(self) -> usize {
1646
- with_session_globals(|session_globals| session_globals.symbol_interner.get(self).len())
1647
- }
1648
-
1649
pub fn is_empty(self) -> bool {
1650
self == kw::Empty
1651
0 commit comments