]> git.lizzy.rs Git - rust.git/commit
Relax restrictions on unknown feature directives
authorAlex Crichton <alex@alexcrichton.com>
Tue, 26 Nov 2013 22:55:06 +0000 (14:55 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 27 Nov 2013 17:54:30 +0000 (09:54 -0800)
commita9bd049fc09445a20ab8a9283a24f1074403d061
treeeb356b4d583646f03ff9fb9abf8cf317c2a34fb2
parente9a1869a5f4164d5311963b1b25b05f003d43699
Relax restrictions on unknown feature directives

Instead of forcibly always aborting compilation, allow usage of
 #[warn(unknown_features)] and related lint attributes to selectively abort
 compilation. By default, this lint is deny.
src/librustc/front/feature_gate.rs
src/librustc/middle/lint.rs
src/test/compile-fail/gated-bad-feature.rs
src/test/compile-fail/lint-unknown-feature.rs [new file with mode: 0644]