| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-30 | rustc -> rustc_middle part 1 | Mazdak Farrokhzad | -683/+0 | |
| 2020-03-28 | rename Scalar::{ptr_null -> null_ptr} | Ralf Jung | -1/+1 | |
| 2020-03-25 | add helper method for ptr ops on Scalar; reduce unnecessary large operand of ↵ | Ralf Jung | -43/+30 | |
| overflowing_signed_offset | ||||
| 2020-03-25 | make Size::from* methods generic in the integer type they accept | Ralf Jung | -2/+2 | |
| 2020-03-25 | use checked casts and arithmetic in Miri engine | Ralf Jung | -29/+44 | |
| 2020-03-23 | Split long derive lists into two derive attributes. | Ana-Maria Mihalache | -25/+4 | |
| 2020-03-18 | Rollup merge of #69839 - RalfJung:miri-error-cleanup, r=oli-obk | Mazdak Farrokhzad | -6/+7 | |
| Miri error reform Some time ago we started moving Miri errors into a few distinct categories, but we never classified all the old errors. That's what this PR does. ~~This is on top of https://github.com/rust-lang/rust/pull/69762; [relative diff](https://github.com/RalfJung/rust/compare/validity-errors...RalfJung:miri-error-cleanup).~~ r? @oli-obk Fixes https://github.com/rust-lang/const-eval/issues/4 | ||||
| 2020-03-14 | add Scalar::from methods for signed integers | Ralf Jung | -0/+26 | |
| 2020-03-11 | miri: categorize errors into "unsupported" and "UB" | Ralf Jung | -6/+7 | |
| Also slightly refactor pointer bounds checks to avoid creating unnecessary temporary Errors | ||||
| 2020-03-08 | Rollup merge of #69326 - JOE1994:os_str_widestring, r=RalfJung | Mazdak Farrokhzad | -0/+10 | |
| mir-interpret: add method to read wide strings from Memory Implemented *step2* from [instructions](https://github.com/rust-lang/miri/issues/707#issuecomment-561564057) laid out in rust-lang/miri#707. Added 2 new methods to struct `rustc_mir::interpret::InterpCx`. * `read_os_str_from_wide_str` (src/librustc_mir/interpret/operand.rs) * `write_os_str_to_wide_str` (src/librustc_mir/interpret/place.rs) - used existing logic implemented in [MIRI/src/eval.rs](https://github.com/rust-lang/miri/blob/94732aaf7bf79fd01a4a48d11155c6586b937514/src/eval.rs#L132-L141) These methods are intended to be used for environment variable emulation in Windows. | ||||
| 2020-03-06 | mir-interpret: add method Memory::read wide_string | JOE1994 | -0/+10 | |
| 2020-02-28 | move ZST assertion up, for better errors | Ralf Jung | -2/+2 | |
| 2020-02-28 | remove ScalarMaybeUndef::to_bits and make Scalar::to_bits private | Ralf Jung | -9/+4 | |
| 2020-02-28 | remove check_raw after reducing it to one use only | Ralf Jung | -8/+3 | |
| 2020-02-28 | get rid of to_ptr | Ralf Jung | -11/+3 | |
| 2020-02-28 | add comment to check_data | Ralf Jung | -0/+4 | |
| 2020-02-16 | Code review changes. | Ben Lewis | -3/+8 | |
| 2020-02-15 | Change const eval to return `ConstValue`, instead of `Const` as the type ↵ | Ben Lewis | -1/+32 | |
| inside it shouldn't be used. | ||||
| 2019-12-28 | Rollup merge of #67604 - christianpoveda:scalar_to_(u|i)64, r=RalfJung | Oliver Scherer | -21/+35 | |
| Add Scalar::to_(u|i)16 methods r? @RalfJung | ||||
| 2019-12-26 | Retire `to_ptr` which should already have no users but still kept getting ↵ | Oliver Scherer | -7/+2 | |
| new ones | ||||
| 2019-12-25 | rewrite scalar to integer methods | Christian Poveda | -28/+29 | |
| 2019-12-25 | Add Scalar::to_(u|i)16 methods | Christian Poveda | -0/+13 | |
| 2019-12-22 | Format the world | Mark Rousskov | -45/+57 | |
| 2019-12-22 | Add error message if `Scalar::from_(u)int` fails | Christian Poveda | -2/+8 | |
| 2019-12-21 | Change results to options | Christian Poveda | -6/+6 | |
| 2019-12-14 | add Scalar::try_from_(u)int methods | Christian Poveda | -12/+22 | |
| 2019-12-02 | Add From instances for Pointer -> ScalarMaybeUndef and Pointer -> Immediate | Ralf Jung | -0/+7 | |
| 2019-11-22 | Allow miri allocation interning to work im generic Machines | Wesley Wiser | -1/+1 | |
| This is necessary so that the `ComstPropMachine` can intern allocations. | ||||
| 2019-11-19 | More HashStable. | Camille GILLOT | -6/+1 | |
| 2019-11-12 | Remove cruft. | Camille GILLOT | -10/+0 | |
| 2019-11-12 | Create intermediate enum ty::ConstKind. | Camille GILLOT | -35/+11 | |
| 2019-11-08 | miri: Rename to_{u,i}size to to_machine_{u,i}size | Ralf Jung | -6/+6 | |
| Having a function `to_usize` that does not return a usize is somewhat confusing | ||||
| 2019-10-21 | Rollup merge of #65660 - varkor:canonical-const-to-bound-const, r=eddyb | Mazdak Farrokhzad | -1/+6 | |
| Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)` It already has the right form, so this is just a renaming. Fixes https://github.com/rust-lang/rust/issues/65655. r? @eddyb | ||||
| 2019-10-21 | Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)` | varkor | -1/+6 | |
| 2019-10-21 | Remove many unnecessary trait derivations. | Nicholas Nethercote | -2/+2 | |
| 2019-10-04 | Introduce a special case in `IntRange::from_const`. | Nicholas Nethercote | -3/+8 | |
| The `if let Some(val) = value.try_eval_bits(...)` branch in `from_const()` is very hot for the `unicode_normalization` benchmark. This commit introduces a special-case alternative for scalars that avoids `try_eval_bits()` and all the functions it calls (`Const::eval()`, `ConstValue::try_to_bits()`, `ConstValue::try_to_scalar()`, and `Scalar::to_bits()`), instead extracting the result immediately. The type and value checking done by `Scalar::to_bits()` is replicated by moving it into a new function `Scalar::check_raw()` and using that new function in the special case. PR #64673 introduced some special-case handling of scalar types in `Const::try_eval_bits()`. This handling is now moved out of that function into the new `IntRange::integral_size_and_signed_bias` function. This commit reduces the instruction count for `unicode_normalization-check-clean` by about 10%. | ||||
| 2019-09-28 | Move `get_slice_bytes` to `rustc::mir::interpret` so it can be reused. | ben | -0/+15 | |
| 2019-09-14 | Rollup merge of #64116 - ZeGentzy:patch-1, r=oli-obk | Mazdak Farrokhzad | -2/+2 | |
| Fix minor typo in docs. This comment is prolly refering to the comment in [const_eval_raw_provider](https://github.com/rust-lang/rust/pull/64116/files#diff-e0b58bb6712edaa8595ad7237542c958R616), not itself. | ||||
| 2019-09-13 | Update value.rs | Hal Gentz | -2/+2 | |
| 2019-09-07 | Aggregation of cosmetic changes made during work on REPL PRs: librustc | Alexander Regueiro | -5/+5 | |
| 2019-09-03 | Update other doc. | Hal Gentz | -2/+2 | |
| Value was renamed to Operand in https://github.com/rust-lang/rust/commit/ad2de8b4ee099916113b7b3577ac86857b1568be ScalarPair to Slice in https://github.com/rust-lang/rust/commit/fe50b4eb1d6f7a31c53798bca3d0fa2b0670fa3d Not familiar enough with rustc's source to know if the comment is even still applicable. | ||||
| 2019-08-17 | size has a zero | Dante-Broggi | -1/+1 | |
| 2019-08-02 | CTFE: simplify Value type by not checking for alignment | Ralf Jung | -10/+3 | |
| 2019-07-30 | renaming throw_err_* to throw_* | Saleem Jaffer | -6/+6 | |
| 2019-07-30 | renaming err to err_unsup | Saleem Jaffer | -6/+6 | |
| 2019-07-30 | adding throw_ and err_ macros for InterpError | Saleem Jaffer | -6/+6 | |
| 2019-07-29 | adding a err macro for each of the InterpError variants | Saleem Jaffer | -7/+6 | |
| 2019-07-29 | fixing fallout due to InterpError refactor | Saleem Jaffer | -6/+7 | |
| 2019-07-06 | remove another unused method | Ralf Jung | -13/+0 | |
| 2019-07-06 | add assert_{bits,ptr}; document which methods we hope to get rid of | Ralf Jung | -0/+20 | |
