Skip to content

Fix ICE when using a pointer cast as array size - #52314

Merged
bors merged 1 commit into
rust-lang:masterfrom
varkor:issue-52023
Jul 14, 2018
Merged

Fix ICE when using a pointer cast as array size#52314
bors merged 1 commit into
rust-lang:masterfrom
varkor:issue-52023

Conversation

@varkor

Copy link
Copy Markdown
Contributor

Fixes#52023. I'm not sure if the comment #52023 (comment) suggested we also emit E0080, but just emitting E0018 seems reasonable for now.

r? @oli-obk

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 12, 2018
@oli-obk

Copy link
Copy Markdown
Contributor

Oh neat, that solution is even better than what I thought.

@bors r+

@bors

bors commented Jul 12, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit e93de95 has been approved by oli-obk

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 12, 2018
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 13, 2018
Fix ICE when using a pointer cast as array size
Fixesrust-lang#52023. I'm not sure if the comment rust-lang#52023 (comment) suggested we also emit `E0080`, but just emitting `E0018` seems reasonable for now.
r? @oli-obk
bors added a commit that referenced this pull request Jul 13, 2018
Rollup of 16 pull requests
Successful merges:
- #51962 (Provide llvm-strip in llvm-tools component)
- #52003 (Implement `Option::replace` in the core library)
- #52156 (Update std::ascii::ASCIIExt deprecation notes)
- #52242 (NLL: Suggest `ref mut` and `&mut self`)
- #52244 (Don't display default generic parameters in diagnostics that compare types)
- #52290 (Deny bare trait objects in src/librustc_save_analysis)
- #52293 (Deny bare trait objects in librustc_typeck)
- #52299 (Deny bare trait objects in src/libserialize)
- #52300 (Deny bare trait objects in librustc_target and libtest)
- #52302 (Deny bare trait objects in the rest of rust)
- #52310 (Backport 1.27.1 release notes to master)
- #52314 (Fix ICE when using a pointer cast as array size)
- #52315 (Resolve FIXME(#27942))
- #52316 (task: remove wrong comments about non-existent LocalWake trait)
- #52322 (Update llvm-rebuild-trigger in light of LLVM 7 upgrade)
- #52332 (dead-code lint: say "constructed", "called" for structs, functions)
Failed merges:
r? @ghost
@bors

bors commented Jul 14, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit e93de95 with merge dd1f69b...

bors added a commit that referenced this pull request Jul 14, 2018
Fix ICE when using a pointer cast as array size
Fixes#52023. I'm not sure if the comment #52023 (comment) suggested we also emit `E0080`, but just emitting `E0018` seems reasonable for now.
r? @oli-obk
@bors

bors commented Jul 14, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: oli-obk
Pushing dd1f69b to master...

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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.

4 participants

@varkor@oli-obk@bors@rust-highfive