rust/src/test
bors 9606f6fa64 Auto merge of #61817 - eddyb:begone-gcx-attempt-2, r=oli-obk
Unify all uses of 'gcx and 'tcx.

This is made possible by @Zoxc landing #57214 (see https://github.com/rust-lang/rust/pull/57214#issuecomment-465036053 for the decision).

A bit of context for the approach: just like #61722, this is *not* how I originally intended to go about this, but @Zoxc and my own experimentation independently resulted in the same conclusion:
The interim alias `type TyCx<'tcx> = TyCtxt<'tcx, 'tcx>;` attempt required more work (adding `use`s), even only for handling the `TyCtxt<'tcx, 'tcx>` case and not the general `TyCtxt<'gcx, 'tcx>` one.

What this PR is based on is the realization that `'gcx` is a special-enough name that it can be replaced, without caring for context, with `'tcx`, and then repetitions of the name `'tcx` be compacted away.
After that, only a small number of error categories remained, each category easily dealt with with either more mass replacements (e.g. `TyCtxt<'tcx, '_>` -> `TyCtxt<'tcx>`) or by hand.

For the `rustfmt` commit, I used https://github.com/rust-lang/rustfmt/issues/1324#issuecomment-482109952, and manually filtered out some noise, like in #61735 and #61722, and like the latter, there was also a weird bug to work around.
It should be reviewed separately, and dropped if unwanted (in this PR it's pretty significant).

cc @rust-lang/compiler r? @nikomatsakis
2019-06-14 16:20:35 +00:00
..
assembly
auxiliary
codegen Rollup merge of #61526 - lcnr:test_reorder, r=nikomatsakis 2019-06-11 17:13:56 +02:00
codegen-units
compile-fail
debuginfo
incremental
mir-opt
pretty
run-fail
run-make
run-make-fulldeps Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
run-pass Rollup merge of #61757 - sfackler:deprecate-once-init, r=alexcrichton 2019-06-13 14:51:57 +02:00
run-pass-fulldeps
run-pass-valgrind
rustdoc
rustdoc-js
rustdoc-js-std
rustdoc-ui
rustfix
ui Auto merge of #61679 - zackmdavis:maybe_dont_indicate_the_anonymous_lifetime, r=oli-obk 2019-06-14 09:39:17 +00:00
ui-fulldeps Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
COMPILER_TESTS.md