about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-11-06 16:28:07 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2022-11-13 14:02:15 +0000
commitdba1503ed3c364f388128d42633ba00258ffad49 (patch)
tree139f6c98213bbba7a495da14114555775e6f8e31 /compiler/rustc_passes/src
parent928d14bcd1976ffd33e743aa09c7c22a063bf87c (diff)
downloadrust-dba1503ed3c364f388128d42633ba00258ffad49.tar.gz
rust-dba1503ed3c364f388128d42633ba00258ffad49.zip
Ensure codegen_fn_attrs during collection.
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/check_attr.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index 2b6ff0a5cb9..f3fc26e4784 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -219,18 +219,6 @@ impl CheckAttrVisitor<'_> {
             return;
         }
 
-        // FIXME(@lcnr): this doesn't belong here.
-        if matches!(
-            target,
-            Target::Closure
-                | Target::Fn
-                | Target::Method(_)
-                | Target::ForeignFn
-                | Target::ForeignStatic
-        ) {
-            self.tcx.ensure().codegen_fn_attrs(self.tcx.hir().local_def_id(hir_id));
-        }
-
         self.check_repr(attrs, span, target, item, hir_id);
         self.check_used(attrs, target);
     }