]> git.lizzy.rs Git - rust.git/commit
Support Option and similar enums as type of static variable with linkage attribute.
authorPeter Collingbourne <pcc@google.com>
Thu, 24 Nov 2022 02:15:50 +0000 (18:15 -0800)
committerPeter Collingbourne <pcc@google.com>
Mon, 5 Dec 2022 23:05:43 +0000 (15:05 -0800)
commitf44a0153bc4efbb93933c9859168315883d6edc2
tree6acfeac9359739c1f65c722626e632551919eb1d
parent5873ebeef3a4497c14b4199abba705fe7b530935
Support Option and similar enums as type of static variable with linkage attribute.

Compiler MCP:
https://github.com/rust-lang/compiler-team/issues/565
compiler/rustc_error_codes/src/error_codes.rs
compiler/rustc_error_codes/src/error_codes/E0791.md [new file with mode: 0644]
compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
compiler/rustc_hir_analysis/src/check/check.rs
compiler/rustc_hir_analysis/src/errors.rs
src/test/ui/linkage-attr/linkage2.rs
src/test/ui/linkage-attr/linkage2.stderr