]> git.lizzy.rs Git - rust.git/commit
auto merge of #13471 : Ryman/rust/feature_syntax_error, r=brson
authorbors <bors@rust-lang.org>
Sun, 13 Apr 2014 15:51:49 +0000 (08:51 -0700)
committerbors <bors@rust-lang.org>
Sun, 13 Apr 2014 15:51:49 +0000 (08:51 -0700)
commit7240fad25e309ae5d8ebfb2b7544a1e62f9382fe
tree535a02fd51d2a87597542349c702aa75fdb77fcb
parent4c62ab109b8bc4da7218c5fab0be1509a8f21664
parentc48a3efb17f20453a44260411f87a6818cbcf8dd
auto merge of #13471 : Ryman/rust/feature_syntax_error, r=brson

The current error message is misleading, it asks users to add `#[feature(..)]` which ends up being treated as an outer attribute, which then has no error unless `attribute_usage` lint is enforced. The code will still fail and the user might not understand why.
src/librustc/front/feature_gate.rs
src/librustc/middle/typeck/check/mod.rs