about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-05-17 15:51:01 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-05-19 18:48:26 -0400
commit9b2b8a5afa833795b66267684615497c9547878d (patch)
tree3d79d1be9d91867d25a3653d7197ecaba2bf47b6 /library/std/src/sys/unix/stack_overflow.rs
parent3a7dfda40a3e798bf086bd58cc7e5e09deb808b5 (diff)
downloadrust-9b2b8a5afa833795b66267684615497c9547878d.tar.gz
rust-9b2b8a5afa833795b66267684615497c9547878d.zip
Break tokens before checking if they are 'probably equal'
Fixes #68489

When checking two `TokenStreams` to see if they are 'probably equal',
we ignore the `IsJoint` information associated with each `TokenTree`.
However, the `IsJoint` information determines whether adjacent tokens
will be 'glued' (if possible) when construction the `TokenStream` - e.g.
`[Gt Gt]` can be 'glued' to `BinOp(Shr)`.

Since we are ignoring the `IsJoint` information, 'glued' and 'unglued'
tokens are equivalent for determining if two `TokenStreams` are
'probably equal'. Therefore, we need to 'unglue' all tokens in the
stream to avoid false negatives (which cause us to throw out the cached
tokens, losing span information).
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions