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 ce1fed7 commit fb8ab18Copy full SHA for fb8ab18
src/libsyntax_pos/symbol.rs
@@ -36,7 +36,7 @@ impl Ident {
36
}
37
38
pub fn without_first_quote(&self) -> Ident {
39
- Ident { name: self.name.without_first_quote(), ctxt: self.ctxt }
+ Ident { name: Symbol::from(self.name.as_str().trim_left_matches('\'')), ctxt: self.ctxt }
40
41
42
pub fn modern(self) -> Ident {
@@ -117,10 +117,6 @@ impl Symbol {
117
pub fn as_u32(self) -> u32 {
118
self.0
119
120
-
121
- pub fn without_first_quote(&self) -> Symbol {
122
- Symbol::from(self.as_str().trim_left_matches('\''))
123
- }
124
125
126
impl<'a> From<&'a str> for Symbol {
0 commit comments