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

Make casts follow the new RFC401 #24333

Merged
merged 9 commits into from
May 19, 2015
Merged

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Apr 11, 2015

No description provided.

@rust-highfive
Copy link
Collaborator

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@arielb1
Copy link
Contributor Author

arielb1 commented Apr 11, 2015

ping @nrc, not r? yet

@nrc nrc unassigned eddyb Apr 11, 2015
@alexcrichton
Copy link
Member

r? @nrc

(just making sure all PRs have an assignee)

@arielb1
Copy link
Contributor Author

arielb1 commented Apr 20, 2015

This is based on top of #24615 so I can test it faster. I will rebase before r? anyway.

@bors
Copy link
Contributor

bors commented May 2, 2015

☔ The latest upstream changes (presumably #25038) made this pull request unmergeable. Please resolve the merge conflicts.

@bluss
Copy link
Member

bluss commented May 2, 2015

I'm sorry for the disruption, I didn't know this was in the works. My patch was small, so it should be simple.

@arielb1
Copy link
Contributor Author

arielb1 commented May 5, 2015

@bluss

I'm throwing the code out anyway. Shouldn't matter

@arielb1 arielb1 changed the title WIP: Make casts follow the new RFC401 Make casts follow the new RFC401 May 5, 2015
@arielb1 arielb1 force-pushed the implement-rfc401 branch 2 times, most recently from 13c4999 to c158bb4 Compare May 5, 2015 18:50
@arielb1
Copy link
Contributor Author

arielb1 commented May 5, 2015

r? @nrc

Wow there were so many bugs here.

@bors
Copy link
Contributor

bors commented May 13, 2015

☔ The latest upstream changes (presumably #24619) made this pull request unmergeable. Please resolve the merge conflicts.

@arielb1 arielb1 force-pushed the implement-rfc401 branch 3 times, most recently from 8a146e4 to 74e2bc5 Compare May 13, 2015 22:40

fn illegal_cast_2<U:?Sized>(u: *const U) -> *const str
{
u as *const str //~ ERROR vtable kinds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a test for *const str as *const U (or something similar)?

@bors
Copy link
Contributor

bors commented May 15, 2015

💔 Test failed - auto-mac-64-nopt-t

@Manishearth
Copy link
Member

@bors: r=nrc p=1 force

@bors
Copy link
Contributor

bors commented May 15, 2015

📌 Commit e2f5f1b has been approved by nrc

@bors
Copy link
Contributor

bors commented May 15, 2015

⌛ Testing commit e2f5f1b with merge 32d0328...

@bors
Copy link
Contributor

bors commented May 15, 2015

💔 Test failed - auto-win-32-nopt-t

Ariel Ben-Yehuda and others added 8 commits May 19, 2015 17:42
This should hopefully fix all cast-related ICEs once and for all.

I managed to make diagnostics hate me and give me spurious "decoder error"
 - removing $build/tmp/extended-errors seems to fix it.
I think I didn't run tests properly - my second call to
select_all_obligations_or_error has made 3 tests fail. However, this is
just an error message change - integer fallback never worked with casts.
@arielb1
Copy link
Contributor Author

arielb1 commented May 19, 2015

Fixed test failure

@arielb1
Copy link
Contributor Author

arielb1 commented May 19, 2015

Thanks @dotdash

@dotdash
Copy link
Contributor

dotdash commented May 19, 2015

@bors r=nrc

@bors
Copy link
Contributor

bors commented May 19, 2015

📌 Commit e7e1fd2 has been approved by nrc

bors added a commit that referenced this pull request May 19, 2015
@bors
Copy link
Contributor

bors commented May 19, 2015

⌛ Testing commit e7e1fd2 with merge c322dbb...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants