diff options
| author | bors <bors@rust-lang.org> | 2022-12-07 10:24:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-07 10:24:59 +0000 |
| commit | 91b8f34ac2272e3c94a97bebc033abe8e2f17101 (patch) | |
| tree | 4c3707513fc8c10ed0e6da178cd9be923f4a24df /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | ec28f5338b8e54fa8ae3c18bf101c809c337f1f5 (diff) | |
| parent | b4278b02a7e6ad814c09bbc6c066c1713171fe82 (diff) | |
| download | rust-91b8f34ac2272e3c94a97bebc033abe8e2f17101.tar.gz rust-91b8f34ac2272e3c94a97bebc033abe8e2f17101.zip | |
Auto merge of #104799 - pcc:linkage-fn, r=tmiasko
Support Option and similar enums as type of static variable with linkage attribute Compiler MCP: rust-lang/compiler-team#565
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 5156d432b5b..c92ab749bc1 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -289,3 +289,10 @@ pub struct SelfInImplSelf { #[note] pub note: (), } + +#[derive(Diagnostic)] +#[diag(hir_analysis_linkage_type, code = "E0791")] +pub(crate) struct LinkageType { + #[primary_span] + pub span: Span, +} |
