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 ca3dcad commit f5479a9Copy full SHA for f5479a9
src/stable.rs
@@ -787,8 +787,6 @@ fn symbol(input: Cursor) -> PResult<TokenTree> {
787
let a = &input.rest[..end];
788
if a == "r#_" {
789
Err(LexError)
790
- } else if a == "_" {
791
- Ok((input.advance(end), Punct::new('_', Spacing::Alone).into()))
792
} else {
793
let ident = if raw {
794
::Ident::_new_raw(&a[2..], ::Span::call_site())
tests/test.rs
@@ -113,6 +113,7 @@ fn roundtrip() {
113
",
114
);
115
roundtrip("'a");
116
+ roundtrip("'_");
117
roundtrip("'static");
118
roundtrip("'\\u{10__FFFF}'");
119
roundtrip("\"\\u{10_F0FF__}foo\\u{1_0_0_0__}\"");
0 commit comments