rust/src/test/rustfix
Alex Crichton fa9e55faeb test: Make a dedicated testsuite for rustfix
This commit adds a dedicated mode to compiletest for running rustfix tests,
adding a new `src/test/rustfix` directory which will execute all tests as a
"rustfix" test, namely requiring that a `*.fixed` is next to the main file which
is the result of the rustfix project's application of fixes.

The `rustfix` crate is pulled in to actually perform the fixing, and the rustfix
compiletest mode will assert a few properties about the fixing:

* The expected fixed output must be the same as rustc's output suggestions
  applied to the original code.
* The fixed code must compile successfully
* The fixed code must have no further diagnostics emitted about it
2018-05-04 15:01:28 -07:00
..
closure-immutable-outer-variable.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
closure-immutable-outer-variable.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
empty-no-fixes.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
empty-no-fixes.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
empty-no-fixes.rs.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-45562.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-45562.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-45799-bad-extern-crate-rename-suggestion-formatting.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-46756-consider-borrowing-cast-or-binexpr.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
issue-46756-consider-borrowing-cast-or-binexpr.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
main-no-fixes.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
main-no-fixes.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
main-no-fixes.rs.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
missing-comma-in-match.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
missing-comma-in-match.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
str-as-char.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
str-as-char.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
tuple-float-index.fixed test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
tuple-float-index.rs test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
update-all-references.sh test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
update-references.sh test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00