Skip to content

Commit 7ee3f70

Browse files
davidtwcoandjo403
authored andcommitted
hir: stop checking codegen fn attrs for constants
See linked comment[1] for context. 1: rust-lang#64809 (comment) Signed-off-by: David Wood <[email protected]>
1 parent 924f266 commit 7ee3f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/hir/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl CheckAttrVisitor<'tcx> {
112112
return;
113113
}
114114

115-
if target == Target::Fn || target == Target::Const {
115+
if target == Target::Fn {
116116
self.tcx.codegen_fn_attrs(self.tcx.hir().local_def_id(item.hir_id));
117117
}
118118

0 commit comments

Comments
 (0)