Skip to content

Commit 080d3d8

Browse files
committed
The internal panic machinery is unstable
1 parent 9ed92f8 commit 080d3d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

text/0000-const-panic.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ about it not being const fn, we produce a specialized error with the panic's
6767
message. This panic reporting machinery is already present in the mir
6868
interpreter, but needs the lang item detection in order to work.
6969

70+
Note that this internal machinery is inherently unstable and thus never
71+
invoked directly by users. Users will use the `panic!` macro as an entry point.
72+
The internal details of the panic handling might change in the future, but always
73+
in a way that will keep allowing MIR interpretation to evaluate it. All future
74+
changes will have to address this directly and regression tests should ensure
75+
that we never break the const evaluability.
76+
7077
# Drawbacks
7178
[drawbacks]: #drawbacks
7279

0 commit comments

Comments
 (0)