Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMir: remove Panic terminator and instead just call suitable lang item #29573
Comments
nikomatsakis
added
E-mentor
T-compiler
A-mir
labels
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
Hi, I'd like to give this a shot. |
This comment has been minimized.
This comment has been minimized.
|
@wesleywiser great! If you want to chat about it, the easiest way is to privmsg me on IRC ( |
nikomatsakis
changed the title
Mir: Trans Panics
Mir: remove Panic terminator and instead just call suitable lang item
Nov 11, 2015
nikomatsakis
added
the
I-needs-decision
label
Nov 11, 2015
This comment has been minimized.
This comment has been minimized.
|
I now think we should refactor panics to simply call into the appropriate lang item and not have an explicit |
This comment has been minimized.
This comment has been minimized.
|
Replacing |
This comment has been minimized.
This comment has been minimized.
|
On the other hand, it would make implementing certain codegen features such as |
This comment has been minimized.
This comment has been minimized.
|
@nagisa I don't see why it makes that any harder. In such a mode we presumably would not emit a Panic either, and/or we'd change the lang item to abort (and strip away the landing pads path so that the call block has no successors). |
This comment has been minimized.
This comment has been minimized.
|
@nagisa also, the semantics of diverge are not unreachable. The diverge On Fri, Nov 13, 2015 at 3:00 PM, Simonas Kazlauskas <
|
This comment has been minimized.
This comment has been minimized.
|
Though, we could say that if landing pads are disabled, then the Diverge On Fri, Nov 13, 2015 at 3:07 PM, Nicholas Matsakis nmatsakis@mozilla.com
|
nikomatsakis commentedNov 4, 2015
Panic in MIR is unimplemented. It should call into the panic lang item.