hir: stop checking codegen fn attrs for constants
See linked comment[1] for context. 1: https://github.com/rust-lang/rust/pull/64809#discussion_r328662933 Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
parent
e79036d17f
commit
c3368bdfa4
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user