Skip to content
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

Merged
merged 2 commits into from
Oct 28, 2018
Merged

Conversation

mjbshaw
Copy link
Contributor

@mjbshaw mjbshaw commented Oct 22, 2018

Fixes #55239

Copy link
Contributor

@oli-obk oli-obk left a 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

src/librustc_typeck/check/wfcheck.rs Outdated Show resolved Hide resolved
src/librustc_typeck/check/wfcheck.rs Outdated Show resolved Hide resolved
src/librustc_typeck/check/wfcheck.rs Outdated Show resolved Hide resolved
@mjbshaw
Copy link
Contributor Author

mjbshaw commented Oct 22, 2018

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.

@oli-obk
Copy link
Contributor

oli-obk commented Oct 22, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Oct 22, 2018

📌 Commit 5b84550 has been approved by oli-obk

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 22, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Oct 24, 2018
Allow extern statics with an extern type

Fixes rust-lang#55239
pietroalbini added a commit to pietroalbini/rust that referenced this pull request Oct 25, 2018
Allow extern statics with an extern type

Fixes rust-lang#55239
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Oct 27, 2018
Allow extern statics with an extern type

Fixes rust-lang#55239
kennytm added a commit to kennytm/rust that referenced this pull request Oct 28, 2018
Allow extern statics with an extern type

Fixes rust-lang#55239
bors added a commit that referenced this pull request Oct 28, 2018
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)
@bors bors merged commit 5b84550 into rust-lang:master Oct 28, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Feb 7, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants