We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91e0a3 commit e249f2eCopy full SHA for e249f2e
src/libsyntax/parse/lexer/tokentrees.rs
@@ -207,6 +207,8 @@ impl<'a> TokenTreesReader<'a> {
207
// Note that testing for joint-ness here is done via the raw
208
// source span as the joint-ness is a property of the raw source
209
// rather than wanting to take `override_span` into account.
210
+ // Additionally, we actually check if the *next* pair of tokens
211
+ // is joint, but this is equivalent to checking the current pair.
212
let raw = self.string_reader.peek_span_src_raw;
213
self.real_token();
214
let is_joint = raw.hi() == self.string_reader.peek_span_src_raw.lo()
@@ -222,4 +224,3 @@ impl<'a> TokenTreesReader<'a> {
222
224
self.span = t.sp;
223
225
}
226
-
0 commit comments