Skip to content

Refactor mir::dataflow: remove Ctxt associated type from BitDenotation trait #38616

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 28, 2016

Conversation

pnkfelix
Copy link
Member

Refactor mir::dataflow: remove Ctxt associated type from BitDenotation trait

I no longer remember why I needed this (or thought I did). The way
that the BitDenotation is passed around in all existing use cases
(and planned future ones), the thing that were in the Ctxt can just
be part of Self instead.

(I think ariel had been pushing me to do this back when I first put in
this infrastructure; it took me a while to see how much of pain the
Ctxt was causing.)

…n trait.

I no longer remember why I needed this (or thought I did). The way
that the `BitDenotation` is passed around in all existing use cases
(and planned future ones), the thing that were in the `Ctxt` can just
be part of `Self` instead.

(I think ariel had been pushing me to do this back when I first put in
this infrastructure; it took me a while to see how much of pain the
`Ctxt` was causing.)
@rust-highfive
Copy link
Contributor

r? @nrc

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

@arielb1
Copy link
Contributor

arielb1 commented Dec 26, 2016

Nice cleanup.

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 26, 2016

📌 Commit a6fe6c9 has been approved by arielb1

@bors
Copy link
Collaborator

bors commented Dec 28, 2016

⌛ Testing commit a6fe6c9 with merge 469fd77...

bors added a commit that referenced this pull request Dec 28, 2016
…arielb1

Refactor mir::dataflow: remove Ctxt associated type from BitDenotation trait

Refactor mir::dataflow: remove Ctxt associated type from BitDenotation trait

I no longer remember why I needed this (or thought I did). The way
that the `BitDenotation` is passed around in all existing use cases
(and planned future ones), the thing that were in the `Ctxt` can just
be part of `Self` instead.

(I think ariel had been pushing me to do this back when I first put in
this infrastructure; it took me a while to see how much of pain the
`Ctxt` was causing.)
@bors
Copy link
Collaborator

bors commented Dec 28, 2016

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing 469fd77 to master...

@bors bors merged commit a6fe6c9 into rust-lang:master Dec 28, 2016
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.

5 participants