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
This commit is contained in:
bors 2022-12-07 10:24:59 +00:00
commit 91b8f34ac2
22 changed files with 157 additions and 89 deletions

View file

@ -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,
}