Skip to content

Rename mir::Mir to mir::Body, by analogy with hir::Body. #60229

Closed

Description

@eddyb

I think it would make more sense than the current setup, as a Mir coresponds to the body of a constant or function, in MIR.
Also, MIR encompasses more than just bodies - e.g. the miri value representation, but arguably the whole type/trait-system (including chalk) could be considered an integral part of "the Mid-level rustc IR".

cc @rust-lang/compiler

Activity

  1. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    on Apr 24, 2019
  2. added
    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Apr 24, 2019
  3. marimeireles commented on Apr 24, 2019

    @marimeireles

    Hi @eddyb can I take this one this one to get my feet wet on rust?

  4. nikomatsakis commented on Apr 24, 2019

    @nikomatsakis
    Contributor

    I feel pretty good about this naming. As far as process, I feel like we could probably make this specific decision rather quickly. We could also try to have a dedicated nomenclature discussion, where we look over a lot of names and try to "harmonize" them, rather than doing things piecemeal. But this particular choice feels like a clear win.

  5. eddyb commented on Apr 24, 2019

    @eddyb
    ContributorAuthor

    @marimeireles Sure, go ahead!

  6. added 3 commits that reference this issue on May 25, 2019
  7. added a commit that references this issue on May 28, 2019
  8. imbrem commented on Jun 3, 2019

    @imbrem
    Contributor

    Could I try part 2 of this, or is it already taken?

  9. varkor commented on Jun 3, 2019

    @varkor
    Contributor

    @imbrem: it looks like no-one else is working on this, so go ahead!

  10. eddyb commented on Jun 3, 2019

    @eddyb
    ContributorAuthor

    Not sure it should be mir_body - in MIR-specific code, such as all of rustc::mir and rustc_mir, it could just be body, as it would be unambiguous.

  11. imbrem commented on Jun 3, 2019

    @imbrem
    Contributor

    @eddyb I agree. I'll get to it in a few hours or so!

  12. imbrem commented on Jun 3, 2019

    @imbrem
    Contributor

    Oh also, what do I do about the lifetime 'mir. Just leave it as is?

  13. added a commit that references this issue on Jun 10, 2019
  14. JohnTitor commented on Jul 25, 2019

    @JohnTitor
    Member

    Does #61506 make the second checkbox checked? @eddyb

  15. imbrem commented on Jul 25, 2019

    @imbrem
    Contributor

    @JohnTitor that was certainly my intention haha

  16. oli-obk commented on Jul 27, 2019

    @oli-obk
    Contributor

    Yea this looks resolved to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions