rust/compiler/rustc_mir/src/interpret
Yuki Okushi 446edd1e1a
Rollup merge of #79951 - LeSeulArtichaut:ty-ir, r=nikomatsakis
Refractor a few more types to `rustc_type_ir`

In the continuation of #79169, ~~blocked on that PR~~.

This PR:
 - moves `IntVarValue`, `FloatVarValue`, `InferTy` (and friends) and `Variance`
 - creates the `IntTy`, `UintTy` and `FloatTy` enums in `rustc_type_ir`, based on their `ast` and `chalk_ir` equilavents, and uses them for types in the rest of the compiler.

~~I will split up that commit to make this easier to review and to have a better commit history.~~
EDIT: done, I split the PR in commits of 200-ish lines each

r? `````@nikomatsakis````` cc `````@jackh726`````
2021-01-28 15:09:02 +09:00
..
intrinsics Move binder for dyn to each list item 2020-12-11 15:02:46 -05:00
cast.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
eval_context.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
intern.rs move interpret::MemoryKind::Heap to const eval 2020-12-03 21:42:11 +05:30
intrinsics.rs Rollup merge of #80491 - RalfJung:dangling-of-val, r=oli-obk 2020-12-30 20:56:56 +00:00
machine.rs Auto merge of #78407 - oli-obk:ub_checkable_ctfe, r=RalfJung,pnkfelix 2021-01-12 17:26:56 +00:00
memory.rs move interpret::MemoryKind::Heap to const eval 2020-12-03 21:42:11 +05:30
mod.rs interning cleanup: we no longer need to distinguish Const and ConstInner; we no longer need the ignore_interior_mut_in_const hack 2020-10-26 08:56:54 +01:00
operand.rs Rollup merge of #78742 - vn-ki:fix-issue-78655, r=oli-obk 2020-11-05 10:29:59 +01:00
operator.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
place.rs u128 truncation and sign extension are not just interpreter related 2020-11-04 13:41:58 +00:00
step.rs mir: Improve size_of handling when arg is unsized 2021-01-21 22:17:05 +03:00
terminator.rs Add ABI argument to find_mir_or_eval_fn 2021-01-10 15:12:50 +00:00
traits.rs Rustfmt 2020-12-11 19:28:20 +00:00
util.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
validity.rs Fix ICE with ReadPointerAsBytes validation error 2021-01-18 11:51:18 -08:00
visitor.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00