File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,13 @@ ever since const-eval added support for
199
199
` transmute ` and ` union ` . You can read more about this in the
200
200
` const_fn_transmute ` / ` const_fn_union ` [ stabilization report] [ cftu report ] ,
201
201
specifically the subsection entitled "Pointer-integer-transmutes".
202
+ (It is also mentioned in the [ documentation] [ doc for transmute ] for ` transmute ` <!--,
203
+ though with less discussion than what you see in the stabilization report -->.)
202
204
203
205
[ cftu report ] : https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
204
206
207
+ [ doc for transmute ] : https://doc.rust-lang.org/std/mem/fn.transmute.html
208
+
205
209
Thus, we can see that the classification of the above examples as UB during const evaluation
206
210
is not a new thing at all. The only change here was that Miri had some internal
207
211
changes that made it start detecting the UB rather than silently ignoring it.
You can’t perform that action at this time.
0 commit comments