We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dae5f05 commit d8bbc1eCopy full SHA for d8bbc1e
src/libproc_macro/lib.rs
@@ -818,7 +818,7 @@ impl Ident {
818
pub fn new_raw(string: &str, span: Span) -> Ident {
819
let mut ident = Ident::new(string, span);
820
if ident.sym == keywords::Underscore.name() ||
821
- token::is_path_segment_keyword(ast::Ident::with_empty_ctxt(ident.sym)) {
+ ast::Ident::with_empty_ctxt(ident.sym).is_path_segment_keyword() {
822
panic!("`{:?}` is not a valid raw identifier", string)
823
}
824
ident.is_raw = true;
0 commit comments