rustc: feature gates errors should use the new attribute syntax
auto merge of #13652 : erickt/rust/master, r=alexcrichton