diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-22 11:32:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 11:32:23 +0200 |
| commit | 62d4e9eedd384c3a32c55dad71dc04c8891d550e (patch) | |
| tree | a35d2052a8b1ce1932c219aebf72fd40a6d786d1 /src/test/debuginfo/tuple-struct.rs | |
| parent | a8018e224efa8aef9e6a8c9b8a74dc67c225d51d (diff) | |
| parent | 633293fc3a54247f4308507632040424356a9e19 (diff) | |
| download | rust-62d4e9eedd384c3a32c55dad71dc04c8891d550e.tar.gz rust-62d4e9eedd384c3a32c55dad71dc04c8891d550e.zip | |
Rollup merge of #72306 - Aaron1011:feature/turbo-spacing, r=petrochenkov
Break tokens before checking if they are 'probably equal' Fixes #68489 Fixes #70987 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 'src/test/debuginfo/tuple-struct.rs')
0 files changed, 0 insertions, 0 deletions
