rust/compiler/rustc_const_eval/src/interpret
Matthias Krüger 345d483e95
Rollup merge of #89859 - RalfJung:write-discriminant, r=oli-obk
add dedicated error variant for writing the discriminant of an uninhabited enum variant

This is conceptually different from hitting an `Unreachable` terminator. Also add some sanity check making sure we don't write discriminants of things that do not have discriminants.

r? ``@oli-obk``
2021-10-15 07:44:47 +02:00
..
intrinsics
cast.rs
eval_context.rs Remove re-export. 2021-10-03 16:08:54 +02:00
intern.rs
intrinsics.rs Remove implementation of min_align_of intrinsic 2021-09-14 13:58:35 +02:00
machine.rs
memory.rs
mod.rs
operand.rs add dedicated error variant for writing the discriminant of an uninhabited enum variant 2021-10-14 10:03:20 -04:00
operator.rs
place.rs add dedicated error variant for writing the discriminant of an uninhabited enum variant 2021-10-14 10:03:20 -04:00
step.rs CTFE: extra assertions for Aggregate rvalues; remove unnecessarily eager special case 2021-09-29 13:47:41 -04:00
terminator.rs Add const_eval_select intrinsic 2021-10-12 05:42:23 +00:00
traits.rs Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00
util.rs
validity.rs Enable 2021 compatibility lints for all in-tree code 2021-09-20 08:45:39 -04:00
visitor.rs