rust/src/test
Ralf Jung 62d4e9eedd
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).
2020-05-22 11:32:23 +02:00
..
assembly Fix tests 2020-05-18 14:41:34 +01:00
auxiliary test: Fix warnings in rust_test_helpers.c 2020-05-06 23:54:05 +03:00
codegen Auto merge of #71718 - NeoRaider:ffi_const_pure, r=Amanieu 2020-05-21 15:02:08 +00:00
codegen-units Keep codegen units unmerged when building compiler builtins 2020-04-06 00:00:00 +00:00
compile-fail Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
debuginfo ret has been optimized away in debuginfo test 2020-05-16 17:15:24 -07:00
incremental Rollup merge of #72045 - RalfJung:incomplete-unsound, r=petrochenkov 2020-05-16 19:46:29 +02:00
mir-opt Auto merge of #72205 - ecstatic-morse:nrvo, r=oli-obk 2020-05-21 07:16:44 +00:00
pretty Add tests for asm! 2020-05-18 14:41:32 +01:00
run-make Use Cell::take in a couple places 2020-04-26 11:50:53 +02:00
run-make-fulldeps Auto merge of #70674 - cjgillot:query-arena-all, r=matthewjasper 2020-05-01 01:38:05 +00:00
run-pass-valgrind
rustdoc Make intra-link resolve links for both trait and impl items 2020-05-19 14:32:17 +02:00
rustdoc-js Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-js-std Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-ui Add rustdoc regression test for the unused_braces lint 2020-04-24 19:15:07 +02:00
rustfix
ui Rollup merge of #72306 - Aaron1011:feature/turbo-spacing, r=petrochenkov 2020-05-22 11:32:23 +02:00
ui-fulldeps Remove ty::UnnormalizedProjection 2020-05-12 01:56:29 -04:00
COMPILER_TESTS.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00