diff options
| author | David Wood <david@davidtw.co> | 2019-09-26 17:03:29 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-09-26 17:03:29 +0100 |
| commit | c3368bdfa498f0c8fb2267dfb0cb804df8ec6dbb (patch) | |
| tree | 2c3550dbceb3890bce516b9a92ba525d5784ac10 /src | |
| parent | e79036d17fa8037f9f3f7e98a9b4ef80fb943ca7 (diff) | |
| download | rust-c3368bdfa498f0c8fb2267dfb0cb804df8ec6dbb.tar.gz rust-c3368bdfa498f0c8fb2267dfb0cb804df8ec6dbb.zip | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/hir/check_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/hir/check_attr.rs b/src/librustc/hir/check_attr.rs index 283ab0103ec..fcd53780631 100644 --- a/src/librustc/hir/check_attr.rs +++ b/src/librustc/hir/check_attr.rs @@ -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)); } |
