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 <david@davidtw.co>
  • Loading branch information
davidtwco committed Sep 26, 2019
1 parent e79036d commit c3368bd
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 c3368bd

Please sign in to comment.