Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[MIR] span_mirbug! should be an error #35499

Closed

Description

@scottcarr

IIUC, span_mirbug! was an warning while MIR was in development. It's time to make span_mirbug! an error. (Or if it's really supposed to be a warning, rename the macro)

https://github.com/rust-lang/rust/blob/master/src/librustc_mir/transform/type_check.rs#L29-L36

Activity

  1. nagisa commented on Aug 8, 2016

    @nagisa
    Member

    Not before we’re absolutely sure there’s really no more warnings produced by this.

  2. eddyb commented on Aug 22, 2016

    @eddyb
    Contributor

    @nagisa We can check crater after turning them into ICEs.

  3. durka commented on Aug 22, 2016

    @durka
    Contributor

    @nagisa I'm not 100% sure I understand that logic -- since we're in orbit now, and MIR is really being used, it seems to me that broken MIR has to stop compilation. For example see #35883 (comment) -- crash in safe code caused by generating a binary from bad MIR (indicating a bug in typeck).

  4. Mark-Simulacrum commented on May 12, 2017

    @Mark-Simulacrum
    Member

    Can someone give an update here? Should we change mirbug to ICE? It seems reasonable...

  5. arielb1 commented on May 12, 2017

    @arielb1
    Contributor

    This is already done.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions