-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Conversation
// (*) 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. |
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.
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
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.
@ranma42 no, good point, thanks.
db21bc8
to
50c83a9
Compare
@bors: r+ |
📌 Commit 50c83a9 has been approved by |
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
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