diff options
| author | yukang <moorekang@gmail.com> | 2022-08-04 09:28:59 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2022-08-04 09:28:59 +0800 |
| commit | e614bbcd301eb4c3dbb65a4aa3147dc0b6ff197c (patch) | |
| tree | 12f0e4177eb3d94506cb555f3b8725811ac78ceb /compiler/rustc_passes/src | |
| parent | 4a5e83c939706e208d09eda477f3e4785ed6de02 (diff) | |
| download | rust-e614bbcd301eb4c3dbb65a4aa3147dc0b6ff197c.tar.gz rust-e614bbcd301eb4c3dbb65a4aa3147dc0b6ff197c.zip | |
link_ordinal is available for foreign static
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 9fee28a4035..8a8d88d7bf4 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -1864,7 +1864,7 @@ impl CheckAttrVisitor<'_> { fn check_link_ordinal(&self, attr: &Attribute, _span: Span, target: Target) -> bool { match target { - Target::ForeignFn => true, + Target::ForeignFn | Target::ForeignStatic => true, _ => { self.tcx.sess.emit_err(errors::LinkOrdinal { attr_span: attr.span }); false |
