Skip to content

Commit

Permalink
hir: stop checking codegen fn attrs for constants
Browse files Browse the repository at this point in the history
See linked comment[1] for context.

1: rust-lang#64809 (comment)

Signed-off-by: David Wood <[email protected]>
  • Loading branch information
davidtwco authored and andjo403 committed Oct 3, 2019
1 parent 924f266 commit 7ee3f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/hir/check_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl CheckAttrVisitor<'tcx> {
return;
}

if target == Target::Fn || target == Target::Const {
if target == Target::Fn {
self.tcx.codegen_fn_attrs(self.tcx.hir().local_def_id(item.hir_id));
}

Expand Down

0 comments on commit 7ee3f70

Please sign in to comment.