Skip to content

Commit c3368bd

Browse files
committed
hir: stop checking codegen fn attrs for constants
See linked comment[1] for context. 1: #64809 (comment) Signed-off-by: David Wood <[email protected]>
1 parent e79036d commit c3368bd

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)