]> git.lizzy.rs Git - rust.git/commit
Auto merge of #49900 - pnkfelix:compare-mode-nll-followup-3, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 19 Apr 2018 11:13:10 +0000 (11:13 +0000)
committerbors <bors@rust-lang.org>
Thu, 19 Apr 2018 11:13:10 +0000 (11:13 +0000)
commit8a28d94ea1b6c19b7e1d41ef9b33ccb73951f654
treeca79b860528005be4f468f665f1270c1474241b0
parent5fe6b58dfc5ef9bb5dbfba9cf74aa9293a33e7b2
parent33bcb4ed16b01abeaa762c99e452da82c9c6275f
Auto merge of #49900 - pnkfelix:compare-mode-nll-followup-3, r=nikomatsakis

Add src/test/ui regression testing for NLL

This PR changes `x.py test` so that when you are running the `ui` test suite, it will also always run `compiletest` in the new `--compare-mode=nll`, which just double-checks that when running under the experimental NLL mode, the output matches the `<source-name>.nll.stderr` file, if present.

In order to reduce the chance of a developer revolt in response to this change, this PR also includes some changes to make the `--compare-mode=nll` more user-friendly:

 1. It now generates nll-specific .stamp files, and uses them (so that repeated runs can reuse previously cached results).
 2. Each line of terminal output distinguishes whether we are running under `--compare-mode=nll` by printing with the prefix `[ui (nll)]` instead of just the prefix `[ui]`.

Subtask of rust-lang/rust#48879