]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #22278 - nikomatsakis:rustc-error, r=nikomatsakis
authorManish Goregaokar <manishsmail@gmail.com>
Sun, 15 Feb 2015 12:59:26 +0000 (18:29 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sun, 15 Feb 2015 13:12:43 +0000 (18:42 +0530)
commita2840f35603017db2d946d35164a714e2d06bf7b
tree518fe5a5fa1ec99fbc90fdbd1d1aff479c47f79f
parent2935d67e08c31067ddc9d3f6589054b5f7dad81a
parentfb05f282d7810f93c9dcb0ef979e66648a8716fc
Rollup merge of #22278 - nikomatsakis:rustc-error, r=nikomatsakis

 Add `#[rustc_error]` annotation, which causes trans to signal an error
if found on the `main()` function. This lets you write tests that live
in `compile-fail` but are expected to compile successfully. This is
handy when you have many small variations on a theme that you want to
keep together, and you are just testing the type checker, not the
runtime semantics.

r? @pnkfelix
src/librustc/lint/builtin.rs