| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-11-08 | Move `Pointer` to its own module | Oliver Scherer | -147/+155 | |
| 2018-11-08 | Move ScalarMaybeUndef into `value.rs` | Oliver Scherer | -129/+129 | |
| 2018-11-08 | Move UndefMask and Relocations into `allocation.rs` | Oliver Scherer | -138/+138 | |
| 2018-11-08 | Move the `memory_accessed` hook onto the `Extra` value | Oliver Scherer | -1/+31 | |
| 2018-11-08 | Move `ScalarMaybeUndef` back to rustc | Oliver Scherer | -0/+128 | |
| 2018-11-08 | Move `Allocation` into its own module | Oliver Scherer | -740/+9 | |
| 2018-11-08 | Duplicate mod.rs for better diff tracking | Oliver Scherer | -0/+752 | |
| 2018-11-05 | add method to obtain the ptr offset of a Scalar | Ralf Jung | -0/+13 | |
| 2018-11-05 | proide ptr_wrapping_offset on Scalars | Ralf Jung | -43/+65 | |
| 2018-11-05 | fix validation error on non-integer enum discriminants | Ralf Jung | -3/+12 | |
| 2018-11-04 | rustc_target: pass contexts by reference, not value. | Eduard-Mihai Burtescu | -32/+32 | |
| 2018-10-30 | Use vec![x; n] instead of iter::repeat(x).take(n).collect() | ljedrz | -4/+2 | |
| 2018-10-28 | always print backtrace when CTFE_BACKTRACE is set | Ralf Jung | -2/+2 | |
| No point in making the user also enable RUST_LOG | ||||
| 2018-10-28 | remove some unused CTFE error variants | Ralf Jung | -50/+1 | |
| 2018-10-28 | rename env var to control ctfe backtraces, and make it usually show the ↵ | Ralf Jung | -36/+66 | |
| backtrace delayed The env var is now RUST_CTFE_BACKTRACE. Similar to RUST_BACKTRACE, it usually only prints a backtrace when the error actually surfaces, not when it happens. This makes a difference when we catch errors. As per @oli-obk's request, one can set RUST_CTFE_BACKTRACE=immediate to get the backtrace shown immediately. | ||||
| 2018-10-26 | Auto merge of #53821 - oli-obk:sanity_query, r=RalfJung | bors | -30/+50 | |
| Report const eval error inside the query Functional changes: We no longer warn about bad constants embedded in unused types. This relied on being able to report just a warning, not a hard error on that case, which we cannot do any more now that error reporting is consistently centralized. r? @RalfJung fixes #53561 | ||||
| 2018-10-25 | preserve const eval error information through trait error system | Ralf Jung | -1/+1 | |
| 2018-10-25 | for now, just use NULL ptr for unsized locals | Ralf Jung | -5/+5 | |
| 2018-10-25 | Layout errors can happen because something was too generic | Oliver Schneider | -3/+4 | |
| 2018-10-25 | Report const eval error inside the query | Oliver Schneider | -24/+43 | |
| 2018-10-25 | Rollup merge of #55345 - RalfJung:no-null, r=oli-obk | Pietro Albini | -9/+1 | |
| Remove is_null It was confusingly named (`is_zero` would have been better, as someone pointed out somewhere but I forgot who or where), and it didn't even reliably test for "is this value 0 at run-time" because out-of-bounds pointers *can* be 0. It's not used in rustc, and miri only really needs `is_null_ptr` and `to_bytes() == 0`, so let's just kill this method. r? @oli-obk | ||||
| 2018-10-25 | Remove is_null | Ralf Jung | -9/+1 | |
| It was confusingly named (`is_zero` would have been better), and it didn't even reliably test for "is this value 0 at run-time" because out-of-bounds pointers *can* be 0. | ||||
| 2018-10-23 | fix typos in various places | Matthias Krüger | -1/+1 | |
| 2018-10-21 | Auto merge of #55125 - RalfJung:stacked-borrows, r=oli-obk | bors | -2/+6 | |
| miri engine: Hooks for basic stacked borrows r? @oli-obk | ||||
| 2018-10-19 | Prefer `Default::default` over `FxHash*::default` in struct constructors | Oliver Scherer | -2/+2 | |
| 2018-10-19 | Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack | Oliver Scherer | -2/+2 | |
| 2018-10-18 | add support for storing extra data in an allocation | Ralf Jung | -2/+6 | |
| 2018-10-10 | typos and spaces | Ralf Jung | -2/+2 | |
| 2018-10-10 | miri engine: basic support for pointer provenance tracking | Ralf Jung | -42/+90 | |
| 2018-10-09 | miri engine: also check return type before calling function | Ralf Jung | -1/+7 | |
| 2018-10-03 | A handful of cleanups for rustc/mir | ljedrz | -2/+2 | |
| 2018-10-01 | Auto merge of #54693 - RalfJung:ctfe-scalar-pair-undef, r=oli-obk | bors | -100/+10 | |
| do not normalize all non-scalar constants to a ConstValue::ScalarPair We still need `ConstValue::ScalarPair` for match handling (matching slices and strings), but that will never see anything `Undef`. For non-fat-ptr `ScalarPair`, just point to the allocation like larger data structures do. Fixes https://github.com/rust-lang/rust/issues/54387 r? @eddyb | ||||
| 2018-09-30 | move ScalarMaybeUndef into the miri engine | Ralf Jung | -94/+1 | |
| 2018-09-30 | do not normalize non-scalar constants to a ConstValue::ScalarPair | Ralf Jung | -6/+9 | |
| 2018-09-29 | don't elide lifetimes in paths in librustc/ | Zack M. Davis | -4/+4 | |
| This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)! | ||||
| 2018-09-08 | Auto merge of #53903 - GabrielMajeri:opt-miri-array-slice, r=oli-obk | bors | -10/+17 | |
| Optimize miri checking of integer array/slices This pull request implements the optimization described in #53845 (the `E-easy` part of that issue, not the refactoring). Instead of checking every element of an integral array, we can check the whole memory range at once. r? @RalfJung | ||||
| 2018-09-08 | Optimize miri checking of integer array/slices | Gabriel Majeri | -10/+17 | |
| Instead of checking every element, we can check the whole memory range at once. | ||||
| 2018-09-03 | Document snapshot.rs | Bruno Dutra | -0/+5 | |
| 2018-09-03 | Make vaious allocation related types generic on the allocation id | Bruno Dutra | -10/+10 | |
| 2018-08-29 | audit the relocations code, and clean it up a little | Ralf Jung | -1/+3 | |
| 2018-08-29 | re-do argument passing one more time to finally be sane | Ralf Jung | -7/+17 | |
| 2018-08-29 | move some Scalar helpers from miri here, and use them where appropriate | Ralf Jung | -2/+102 | |
| 2018-08-28 | address nits | Ralf Jung | -3/+5 | |
| 2018-08-27 | validate enum discriminant whenever it is read | Ralf Jung | -1/+1 | |
| 2018-08-27 | dedicated handling for binops on bool and char (UB if they are not valid) | Ralf Jung | -6/+19 | |
| 2018-08-27 | Miri Memory Work | Ralf Jung | -10/+90 | |
| * Unify the two maps in memory to store the allocation and its kind together. * Share the handling of statics between CTFE and miri: The miri engine always uses "lazy" `AllocType::Static` when encountering a static. Acessing that static invokes CTFE (no matter the machine). The machine only has any influence when writing to a static, which CTFE outright rejects (but miri makes a copy-on-write). * Add an `AllocId` to by-ref consts so miri can use them as operands without making copies. * Move responsibilities around for the `eval_fn_call` machine hook: The hook just has to find the MIR (or entirely take care of everything); pushing the new stack frame is taken care of by the miri engine. * Expose the intrinsics and lang items implemented by CTFE so miri does not have to reimplement them. | ||||
| 2018-08-23 | Fix stylistic mistakes | Bernardo Meurer | -2/+2 | |
| 2018-08-23 | Reflow and fixup comments | Bernardo Meurer | -1/+2 | |
| 2018-08-23 | Fixed long strings | Bernardo Meurer | -7/+12 | |
| 2018-08-23 | Add license header to CTFE/MIRI | Bernardo Meurer | -0/+30 | |
