| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-11 | Add hooks for Miri panic unwinding | Aaron Hill | -4/+7 | |
| This commits adds in some additional hooks to allow Miri to properly handle panic unwinding. None of this should have any impact on CTFE mode | ||||
| 2019-11-08 | miri: Rename to_{u,i}size to to_machine_{u,i}size | Ralf Jung | -1/+1 | |
| Having a function `to_usize` that does not return a usize is somewhat confusing | ||||
| 2019-10-27 | Always use consteval to codegen caller_location. | Adam Perry | -6/+2 | |
| 2019-10-27 | Implementation of const caller_location. | Adam Perry | -1/+2 | |
| 2019-10-27 | Implement core::intrinsics::caller_location. | Adam Perry | -0/+23 | |
| Returns a `&core::panic::Location` corresponding to where it was called, also making `Location` a lang item. | ||||
| 2019-09-27 | Introduce a `ConstPropMachine` | Wesley Wiser | -5/+5 | |
| This allows us to avoid changing things directly in the miri engine just for const prop. | ||||
| 2019-09-25 | Fix rebase | varkor | -1/+1 | |
| 2019-09-25 | Rename `sty` to `kind` | varkor | -2/+2 | |
| 2019-09-17 | Get rid of special const intrinsic query in favour of `const_eval` | Oliver Scherer | -0/+18 | |
| 2019-09-15 | drop redundant ParamEnv, and avoid constructing InternVisitor without visiting | Ralf Jung | -4/+2 | |
| 2019-09-14 | Rollup merge of #64116 - ZeGentzy:patch-1, r=oli-obk | Mazdak Farrokhzad | -1/+1 | |
| 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-11 | Avoid two `Symbol::as_str()` calls. | Nicholas Nethercote | -1/+1 | |
| 2019-09-06 | Fixed grammar/style in error messages and reblessed tests. | Alexander Regueiro | -2/+2 | |
| 2019-09-03 | Fix minor typo in docs. | Hal Gentz | -1/+1 | |
| 2019-08-27 | const_prop: only call error_to_const_error if we are actually showing something | Ralf Jung | -0/+3 | |
| 2019-08-22 | Remove eval_promoted const-prop hack | Wesley Wiser | -20/+3 | |
| 2019-08-22 | Move promoted out of mir::Body | Wesley Wiser | -1/+1 | |
| 2019-08-17 | make both unary_op and binary_op fully typed, including a return type | Ralf Jung | -3/+2 | |
| 2019-08-14 | Rollup merge of #62760 - chansuke:dedupe-error-messages, r=zackmdavis | Mazdak Farrokhzad | -4/+7 | |
| Deduplicate error messages in `librsctc_mir` Deduplicated the error messages in `librustc_mir`. #62022 | ||||
| 2019-08-05 | Auto merge of #63079 - RalfJung:ctfe-no-align, r=oli-obk | bors | -4/+7 | |
| CTFE: simplify ConstValue by not checking for alignment I hope the test suite actually covers the problematic cases here? r? @oli-obk Fixes https://github.com/rust-lang/rust/issues/61952 | ||||
| 2019-08-03 | Auto merge of #63234 - Centril:rollup-h9t731z, r=Centril | bors | -8/+8 | |
| Rollup of 5 pull requests Successful merges: - #62954 (Fix typo in Delimited::open_tt) - #63146 (Cleanup syntax::attr) - #63218 (rustbuild: RISC-V is no longer an experimental LLVM target) - #63227 (dead_code: Properly inspect fields in struct patterns with type relative paths) - #63229 (A bit of Miri error cleanup) Failed merges: r? @ghost | ||||
| 2019-08-02 | dedup free-form Unsupported errors; add macros for free-form UB and ↵ | Ralf Jung | -8/+8 | |
| Unsupported cases | ||||
| 2019-08-02 | CTFE: simplify Value type by not checking for alignment | Ralf Jung | -4/+7 | |
| 2019-08-02 | improve error when CTFE does ptr-int-cast; update tests | Ralf Jung | -2/+11 | |
| 2019-08-02 | operator: implement binary_op strictly by first checking the type, then ↵ | Ralf Jung | -1/+1 | |
| dispatching further; call ptr_op machine hook only for pointer types | ||||
| 2019-07-31 | code review fixes | Saleem Jaffer | -6/+5 | |
| 2019-07-31 | Deduplicate some error messages | chansuke | -4/+7 | |
| 2019-07-30 | renaming throw_err_* to throw_* | Saleem Jaffer | -4/+2 | |
| 2019-07-30 | renaming err to err_unsup | Saleem Jaffer | -2/+4 | |
| 2019-07-30 | adding throw_ and err_ macros for InterpError | Saleem Jaffer | -2/+2 | |
| 2019-07-29 | code review fixes | Saleem Jaffer | -1/+1 | |
| 2019-07-29 | code review fixes | Saleem Jaffer | -4/+4 | |
| 2019-07-29 | adding a err macro for each of the InterpError variants | Saleem Jaffer | -4/+2 | |
| 2019-07-29 | fixing fallout due to InterpError refactor | Saleem Jaffer | -6/+9 | |
| 2019-07-16 | Auto merge of #62322 - wesleywiser:promoted_query, r=oli-obk | bors | -1/+1 | |
| Add a query to get the `promoted`s for a `mir::Body` This is a builidng block toward removing a lot of duplicated code between miri and the cosnt-propagator pass. See this thread for more info: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661 r? @spastorino but feel free to hand it off to somebody else | ||||
| 2019-07-06 | remove some no-longer-needed methods | Ralf Jung | -1/+1 | |
| 2019-07-06 | Add check_mplace_ptr convenience method; provide ptr-normalization methods ↵ | Ralf Jung | -1/+1 | |
| for mplace and op to avoid repeated int-to-ptr casting during validation. Also change Memory::copy to work on `Pointer` instead of `Scalar`. Also rename some methods from to_* to assert_* that will panic if their precondition is not met. | ||||
| 2019-07-06 | Rollup merge of #62264 - RalfJung:inline-forcing, r=zackmdavis | Mazdak Farrokhzad | -5/+5 | |
| Fix perf regression from Miri Machine trait changes Maybe this fixes the perf regression that https://github.com/rust-lang/rust/pull/62003 seemingly introduced? Cc @nnethercote | ||||
| 2019-07-06 | Rollup merge of #62245 - RalfJung:miri-extra-fn, r=eddyb,zackmdavis | Mazdak Farrokhzad | -0/+11 | |
| Miri engine: support extra function (pointer) values We want to add basic support for `dlsym` in Miri (needed to run the latest version of `getrandom`). For that to work, `dlsym` needs to return *something* that can be stored in a function pointer and later called. So we add a new `ExtraFnVal` type to the `Machine` trait, and enable Miri's memory to associate allocation IDs with such values, so that `create_fn_alloc` and `get_fn` can work on *both* `Instance` (this is used for "normal" function pointers) and `ExtraFnVal`. Cc @oli-obk | ||||
| 2019-07-04 | use get_size_and_align to test if an allocation is live | Ralf Jung | -1/+1 | |
| 2019-07-04 | add machine hook to handle calls to 'extra' function values | Ralf Jung | -0/+10 | |
| 2019-07-04 | Add basic support for "other" kinds of values for function pointers, ↵ | Ralf Jung | -0/+1 | |
| determined by the machine instance. So far, however, calling such a function will fail. | ||||
| 2019-07-04 | Go back to just passing MemoryExtra to the machine-level allocation hooks | Ralf Jung | -3/+3 | |
| This is needed to avoid doing unnecessary global alloc_map lookups | ||||
| 2019-07-04 | Machine: make self-like parameters come first | Ralf Jung | -4/+4 | |
| 2019-07-04 | Fix merge conflicts | Christian Poveda | -14/+14 | |
| 2019-07-02 | Add a query to get the `promoted`s for a `mir::Body` | Wesley Wiser | -1/+1 | |
| This is a builidng block toward removing a lot of duplicated code between miri and the cosnt-propagator pass. See this thread for more info: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661 | ||||
| 2019-06-29 | Remove default bound for Machine::MemoryExtra | Christian Poveda | -1/+2 | |
| 2019-06-29 | Add MemoryExtra in InterpretCx constructor params | Christian Poveda | -2/+6 | |
| 2019-06-27 | rename InterpretCx -> InterpCx | Ralf Jung | -14/+14 | |
| That's more consistent with InterpResult and InterpError. | ||||
| 2019-06-25 | Rollup merge of #62055 - matthewjasper:fix-error-counting, r=pnkfelix | Mazdak Farrokhzad | -14/+6 | |
| Fix error counting Count duplicate errors for `track_errors` and other error counting checks. Add FIXMEs to make it clear that we should be moving away from this kind of logic. Closes #61663 | ||||
