Skip to content

Build a MIR Map containing the MIR for each fn body #28866

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 7 commits into from
Oct 7, 2015

Conversation

nikomatsakis
Copy link
Contributor

As the subject says. This PR also removes the Hair trait, which was impeding the ability to build such a map, as described in this thread on internals:

https://internals.rust-lang.org/t/removing-the-hair-trait-from-mir-construction/2732

r? @nrc

// (*) the `Sized` and Debug` bounds are the only ones that really
// make sense. The rest are just there so that we can
// `#[derive(Clone)]` on things that are parameterized over
// `H:HAIR`. It's kind of lame.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this trait is being removed, are the panic-only trait implementation for Cx still needed?
https://github.com/rust-lang/rust/pull/28866/files#diff-ec73b70c7997781e552e837799fe63bfL170

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ranma42 no, good point, thanks.

@nrc
Copy link
Member

nrc commented Oct 7, 2015

@bors: r+

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

📌 Commit 50c83a9 has been approved by nrc

bors added a commit that referenced this pull request Oct 7, 2015
As the subject says. This PR also removes the `Hair` trait, which was impeding the ability to build such a map, as described in this thread on internals:

https://internals.rust-lang.org/t/removing-the-hair-trait-from-mir-construction/2732

r? @nrc
@bors
Copy link
Collaborator

bors commented Oct 7, 2015

⌛ Testing commit 50c83a9 with merge a63b0f0...

@bors bors merged commit 50c83a9 into rust-lang:master Oct 7, 2015
@nikomatsakis nikomatsakis deleted the remove-hair-trait branch March 30, 2016 16:17
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.

4 participants