1
Fork 0

Add target_features to TransFnAttrs

Part of #47320
This commit is contained in:
Wesley Wiser 2018-02-27 20:12:32 -05:00
parent 39f9d23b65
commit 07890c5c59
9 changed files with 100 additions and 100 deletions

View file

@ -47,7 +47,7 @@ struct CheckAttrVisitor<'a, 'tcx: 'a> {
impl<'a, 'tcx> CheckAttrVisitor<'a, 'tcx> {
/// Check any attribute.
fn check_attributes(&self, item: &hir::Item, target: Target) {
self.tcx.target_features_enabled(self.tcx.hir.local_def_id(item.id));
self.tcx.trans_fn_attrs(self.tcx.hir.local_def_id(item.id));
for attr in &item.attrs {
if let Some(name) = attr.name() {