diff options
| author | Peter Collingbourne <pcc@google.com> | 2022-11-23 18:15:50 -0800 |
|---|---|---|
| committer | Peter Collingbourne <pcc@google.com> | 2022-12-05 15:05:43 -0800 |
| commit | f44a0153bc4efbb93933c9859168315883d6edc2 (patch) | |
| tree | 6acfeac9359739c1f65c722626e632551919eb1d /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 5873ebeef3a4497c14b4199abba705fe7b530935 (diff) | |
| download | rust-f44a0153bc4efbb93933c9859168315883d6edc2.tar.gz rust-f44a0153bc4efbb93933c9859168315883d6edc2.zip | |
Support Option and similar enums as type of static variable with linkage attribute.
Compiler MCP: https://github.com/rust-lang/compiler-team/issues/565
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 02943e7b887..1ac53fb6ddf 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -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, |
