1
Fork 0

Support Option and similar enums as type of static variable with linkage attribute.

Compiler MCP:
https://github.com/rust-lang/compiler-team/issues/565
This commit is contained in:
Peter Collingbourne 2022-11-23 18:15:50 -08:00
parent 5873ebeef3
commit f44a0153bc
7 changed files with 67 additions and 5 deletions

View file

@ -287,7 +287,7 @@ pub struct SelfInImplSelf {
}
#[derive(Diagnostic)]
#[diag(hir_analysis_linkage_type)]
#[diag(hir_analysis_linkage_type, code = "E0791")]
pub(crate) struct LinkageType {
#[primary_span]
pub span: Span,