-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow extern statics with an extern type #55257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just some nits
Sorry if I've spammed this thread with comments or resolving nits. The recent GitHub outage is still ongoing and is causing this pull request to have an inconsistent state every time I reload the page, and so I might have duplicated some comments or button pushes. Apologies for the spam. |
@bors r+ |
📌 Commit 5b84550 has been approved by |
Allow extern statics with an extern type Fixes rust-lang#55239
Allow extern statics with an extern type Fixes rust-lang#55239
Allow extern statics with an extern type Fixes rust-lang#55239
Allow extern statics with an extern type Fixes rust-lang#55239
Rollup of 11 pull requests Successful merges: - #55148 (Implement FromStr for PathBuf) - #55185 (path suggestions in Rust 2018 should point out the change in semantics) - #55191 (Fix sub-variant doc display) - #55199 (Impl items have generics) - #55244 (Don't rerun MIR passes when inlining) - #55252 (Add MaybeUninit::new) - #55257 (Allow extern statics with an extern type) - #55389 (Remove unnecessary mut in iterator.find_map documentation example, R…) - #55406 (Update string.rs) - #55412 (Fix an ICE in the min_const_fn analysis) - #55421 (Add ManuallyDrop::take)
Do not ICE in codegen when using a extern_type static The layout of a extern_type static is unsized, but may pass the Well-Formed check in typeck (See rust-lang#55257). As a result, we cannot assume that a static is sized when generating the `Place` for an r-value. Fixes: rust-lang#57876 r? @oli-obk
Fixes #55239