Skip to content

Some miri cleanups #46743

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

Merged
merged 1 commit into from
Dec 16, 2017
Merged

Some miri cleanups #46743

merged 1 commit into from
Dec 16, 2017

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Dec 15, 2017

r? @eddyb

let (ptr, ty) = ptr_ty?;
let ecx = mk_eval_cx(tcx, instance.substs, param_env);
Copy link
Member

Choose a reason for hiding this comment

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

Is the new substs field on EvalContext just for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

jup. We used to push a stackframe just to have substs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the substs part and just simplified the interface

@oli-obk oli-obk force-pushed the miri branch 2 times, most recently from 47dc339 to 0d68080 Compare December 15, 2017 10:19
@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 15, 2017
Err(err)
},
((Err(_), _), Err(err)) => Err(err),
((Ok((miri_val, miri_ty)), mut ecx), Ok(ctfe)) => {
(Err(_), Err(err)) => Err(err),
Copy link
Member

@kennytm kennytm Dec 15, 2017

Choose a reason for hiding this comment

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

Heh strange. Why these two arms are not merged 😄

    (_, Err(err)) => Err(err),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the next commit will unmerge them because it's going to process the miri result ;)

@eddyb
Copy link
Member

eddyb commented Dec 15, 2017

@bors delegate=oli-obk

r=me with @kennytm's nit fixed

@bors
Copy link
Collaborator

bors commented Dec 15, 2017

✌️ @oli-obk can now approve this pull request

@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 15, 2017

@bors r=eddyb

@bors
Copy link
Collaborator

bors commented Dec 15, 2017

📌 Commit 2d161f1 has been approved by eddyb

@kennytm kennytm 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 Dec 16, 2017
@bors
Copy link
Collaborator

bors commented Dec 16, 2017

⌛ Testing commit 2d161f1 with merge 4f2ef41...

bors added a commit that referenced this pull request Dec 16, 2017
@bors
Copy link
Collaborator

bors commented Dec 16, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing 4f2ef41 to master...

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.

4 participants