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 0138b82 commit d57f543Copy full SHA for d57f543
crates/parser/src/lexed_str.rs
@@ -38,8 +38,7 @@ impl<'a> LexedStr<'a> {
38
let _p = tracing::info_span!("LexedStr::new").entered();
39
let mut conv = Converter::new(edition, text);
40
if let Some(shebang_len) = rustc_lexer::strip_shebang(text) {
41
- conv.res.push(SHEBANG, conv.offset);
42
- conv.offset = shebang_len;
+ conv.push(SHEBANG, shebang_len, Vec::new());
43
};
44
45
// Re-create the tokenizer from scratch every token because `GuardedStrPrefix` is one token in the lexer
0 commit comments