-
Notifications
You must be signed in to change notification settings - Fork 390
Use rustc generated shims instead of interpreter hacks #156
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
Conversation
And travis broke due to travis moving to rustup 🎉 |
src/terminator/intrinsic.rs
Outdated
let env = self.tcx.empty_parameter_environment(); | ||
let needs_drop = self.tcx.type_needs_drop_given_env(ty, &env); | ||
self.write_primval(dest, PrimVal::from_bool(needs_drop), dest_ty)?; | ||
} | ||
|
||
"offset" => { | ||
let pointee_ty = substs.type_at(0); | ||
let pointee_ty = instance.substs.type_at(0); |
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.
I feel like all of these wouldn't need to be changed if you copied substs
out. It's just a reference anyway.
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.
Yea I want to do some cleanups after everything works.
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.
Do you still plan to do some cleanups? Should I wait until those are done before reviewing?
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.
Not in this PR. I wanted to separate it from any cleanup noise
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.
IMO it's a very simple change in this function that cleans up the diff.
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.
done
For the sake of quick cross-reference, here's a link to the copied-in code from |
Sorry for the delay. I've added @eddyb and @oli-obk as collaborators on the repo so you two can make progress without blocking on me. Unfortunately, I don't have much free time/energy these days to spend on this. That said, I'll still be following the progress and reviewing as much as I can. I'll also be looking for ways to fit this back into my life again, but I shouldn't make any promises. Feel free to either commit to master or continue doing PRs - I'll try to keep pace either way. Just don't consider my approval a requirement from now on. |
@oli-obk Can you update to the latest nightly or should I try? EDIT: I restarted Travis which should check the latest nightly. |
Probably needs to be switched to 9bab6d7783f81da50feb234a120c918d9eabba6e now, or just the branch left in, if that's possible (it's a feature branch so they force pushed). |
Won't get to this before tuesday |
You need to change the got path to the official master branch. We are on an unofficial repo right now |
@oli-obk |
fixes #119
Unfortunately I broke some things:1904 success, 197 no mir, 206 crate not found, 71 failed, 46 C fn, 0 ABI, 121 unsupported, 6 intrinsic1910 success, 197 no mir, 206 crate not found, 64 failed, 46 C fn, 0 ABI, 122 unsupported, 6 intrinsic1918 success, 197 no mir, 206 crate not found, 56 failed, 46 C fn, 0 ABI, 122 unsupported, 6 intrinsic1921 success, 199 no mir, 206 crate not found, 51 failed, 46 C fn, 0 ABI, 122 unsupported, 6 intrinsic1925 success, 200 no mir, 206 crate not found, 46 failed, 46 C fn, 0 ABI, 122 unsupported, 6 intrinsic