about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/interpret/cast.rs
AgeCommit message (Collapse)AuthorLines
2021-09-07Rename rustc_mir to rustc_const_eval.Camille GILLOT-365/+0
2021-09-02rustc_target: move `LayoutOf` to `ty::layout`.Eduard-Mihai Burtescu-2/+2
2021-08-30rustc_target: `TyAndLayout::field` should never error.Eduard-Mihai Burtescu-1/+1
2021-08-18Fold `vtable_trait_upcasting_coercion_new_vptr_slot` logic into obligation ↵Charles Lew-9/+2
processing.
2021-08-03Implement pointer casting.Charles Lew-5/+27
2021-07-15adjustions and cleanup to make Miri build againRalf Jung-2/+2
2021-07-14consistently treat None-tagged pointers as ints; get rid of some deprecated ↵Ralf Jung-3/+3
Scalar methods
2021-07-14CTFE/Miri engine Pointer type overhaul: make Scalar-to-Pointer conversion ↵Ralf Jung-1/+1
infallible This resolves all the problems we had around "normalizing" the representation of a Scalar in case it carries a Pointer value: we can just use Pointer if we want to have a value taht we are sure is already normalized.
2021-05-12entirely remove rustc_args_required_const attributeRalf Jung-8/+0
2021-02-16Pass ImmTy by reference not valueTomasz Miąsko-4/+4
2021-02-16Pass PlaceTy by reference not valueTomasz Miąsko-5/+5
2021-02-16Pass OpTy by reference not valueTomasz Miąsko-5/+5
2021-01-18Use ty::{IntTy,UintTy,FloatTy} in rustcLeSeulArtichaut-7/+5
2020-11-04`u128` truncation and sign extension are not just interpreter relatedoli-3/+2
2020-10-17Rollup merge of #76199 - Mark-Simulacrum:void-zero, r=nikomatsakisDylan DPC-1/+6
Permit uninhabited enums to cast into ints This essentially reverts part of #6204; it is unclear why that [commit](https://github.com/rust-lang/rust/pull/6204/commits/c0f587de34f30b060df8a88c4068740e587b9340) was introduced, and I suspect no one remembers. The changed code was only called from casting checks and appears to not affect any callers of that code (other than permitting this one case). Fixes #75647.
2020-09-04Change ty.kind to a methodLeSeulArtichaut-9/+9
2020-09-02Prevent ICE on uninhabited MIR interpretationMark Rousskov-1/+6
2020-08-30mv compiler to compiler/mark-0/+356