about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-01-08 03:24:40 +0100
committerest31 <MTest31@outlook.com>2017-01-12 23:53:02 +0100
commita13cecacb4f3ffd6faae2080046078ff53748815 (patch)
tree014d5b93c63cd4dc58ca32863c8e0bf642b439bf /src/test/incremental/thinlto
parente8b6d3cc9ebec76b63a2f4d6b54d8eae58f07c5f (diff)
downloadrust-a13cecacb4f3ffd6faae2080046078ff53748815.tar.gz
rust-a13cecacb4f3ffd6faae2080046078ff53748815.zip
Require compile-fail tests for new lang features
Its non trivial to test lang feature gates, and people
forget to add such tests. So we extend the features lint
of the tidy tool to ensure that all new lang features
contain a new compile-fail test.

Of course, one could drop this requirement and just
grep all tests in run-pass for #![feature(abc)] and
then run this test again, removing the mention,
requiring that it fails.

But this only tests for the existence of a compilation
failure. Manual tests ensure that also the correct lines
spawn the error, and also test the actual error message.

For library features, it makes no sense to require such
a test, as here code is used that is generic for all
library features.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions