| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-08-30 | mv compiler to compiler/ | mark | -1039/+0 | |
| 2020-08-12 | fix typos | Ralf Jung | -2/+2 | |
| Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de> | ||||
| 2020-08-12 | more precise span for erroneous consts during CTFE/Miri | Ralf Jung | -13/+26 | |
| 2020-08-12 | miri: fall back to whole-function span when loc==None | Ralf Jung | -9/+8 | |
| 2020-08-12 | only set frame location during push after preamble is done | Ralf Jung | -1/+2 | |
| 2020-08-11 | Rollup merge of #75338 - RalfJung:const-eval-stack-size-check, r=oli-obk | Yuki Okushi | -5/+1 | |
| move stack size check to const_eval machine This is consistent with how we enforce the step limit. In particular, we do not want this limit checked for Miri-the-tool. | ||||
| 2020-08-09 | evaluate required_consts when pushing stack frame in Miri engine | Ralf Jung | -0/+7 | |
| 2020-08-09 | move stack size check to const_eval machine | Ralf Jung | -5/+1 | |
| 2020-08-09 | move const_eval error reporting logic into rustc_mir::const_eval::error | Ralf Jung | -4/+31 | |
| 2020-08-01 | Auto merge of #74726 - oli-obk:tracing, r=Mark-Simulacrum | bors | -2/+1 | |
| Move from `log` to `tracing` The only visible change is that we now get timestamps in our logs: ``` Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: skipping replace of Rvalue::Use(const () because it is already a const Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: propagated into _2 Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: visit_constant: const () ``` This PR was explicitly designed to be as low-impact as possible. We can now move to using the name `tracing` insteads of `log` on a crate-by-crate basis and use any of the other tracing features where desirable. As far as I can tell this will allow tools to seamlessly keep working (since they are using `rustc_driver::init_log...`). This is the first half of step 1 of the accepted `tracing` MCP (https://github.com/rust-lang/compiler-team/issues/331) | ||||
| 2020-07-31 | Move from `log` to `tracing` | Oliver Scherer | -2/+1 | |
| 2020-07-31 | Miri: fix ICE when unwinding past topmost stack frame | Ralf Jung | -0/+4 | |
| 2020-07-28 | Replace all uses of `log::log_enabled` with `Debug` printers | Oliver Scherer | -48/+58 | |
| 2020-07-27 | rename eval_const_to_op -> const_to_op | Ralf Jung | -3/+3 | |
| 2020-07-26 | Miri: replace canonical_alloc_id mechanism by extern_static_alloc_id which ↵ | Ralf Jung | -6/+9 | |
| is called only when a pointer is 'imported' into the machine | ||||
| 2020-07-17 | Rename TypeckTables to TypeckResults. | Valentin Lazureanu | -4/+2 | |
| 2020-07-15 | update promoted_mir | Bastian Kauschke | -5/+1 | |
| 2020-07-15 | update const arg queries | Bastian Kauschke | -3/+3 | |
| 2020-07-15 | const generics work! | Bastian Kauschke | -1/+5 | |
| 2020-07-15 | continue mir pipeline | Bastian Kauschke | -1/+5 | |
| 2020-07-15 | InstanceDef::Item | Bastian Kauschke | -9/+11 | |
| 2020-06-28 | Rollup merge of #73757 - oli-obk:const_prop_hardening, r=wesleywiser | Manish Goregaokar | -0/+7 | |
| Const prop: erase all block-only locals at the end of every block I messed up this erasure in https://github.com/rust-lang/rust/pull/73656#discussion_r446040140. I think it is too fragile to have the previous scheme. Let's benchmark the new scheme and see what happens. r? @wesleywiser cc @felix91gr | ||||
| 2020-06-28 | Erase all block-only locals at the end of every block, even if they have not ↵ | Oliver Scherer | -0/+7 | |
| been touched. | ||||
| 2020-06-27 | Rollup merge of #72796 - RalfJung:mir-assign-sanity, r=matthewjasper | Manish Goregaokar | -36/+23 | |
| MIR sanity check: validate types on assignment This expands the MIR validation added by @jonas-schievink in https://github.com/rust-lang/rust/pull/72093 to also check that on an assignment, the types of both sides match. Cc @eddyb @oli-obk | ||||
| 2020-06-24 | reduce sanity check in debug mode | Ralf Jung | -2/+8 | |
| 2020-06-23 | Rollup merge of #73578 - RalfJung:ty-ctxt-at, r=jonas-schievink | Dylan DPC | -1/+1 | |
| Make is_freeze and is_copy_modulo_regions take TyCtxtAt Make is_freeze and is_copy_modulo_regions take TyCtxtAt instead of separately taking TyCtxt and Span. This is consistent with is_sized. | ||||
| 2020-06-22 | make layout check a mere sanity check | Ralf Jung | -18/+7 | |
| 2020-06-22 | expand a comment | Ralf Jung | -1/+3 | |
| 2020-06-22 | also use relator in interpreter assignment sanity check | Ralf Jung | -26/+15 | |
| 2020-06-22 | also normalize constants when comparing types | Ralf Jung | -0/+1 | |
| 2020-06-21 | Miri: replace many bug! by span_bug! | Ralf Jung | -2/+5 | |
| 2020-06-21 | Make is_freeze and is_copy_modulo_regions take TyCtxtAt | Ralf Jung | -1/+1 | |
| 2020-06-15 | Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk | Ralf Jung | -9/+15 | |
| Miri: avoid tracking current location three times Miri tracks the current instruction to execute in the call stack, but it also additionally has two `TyCtxtAt` that carry a `Span` that also tracks the current instruction. That is quite silly, so this PR uses `TyCtxt` instead, and then uses a method for computing the current span when a `TyCtxtAt` is needed. Having less redundant (semi-)global state seems like a good improvement to me. :D To keep the ConstProp errors the same, I had to add the option to `error_to_const_error` to overwrite the span. Also for some reason this changes cycle errors a bit -- not sure if we are now better or worse as giving those queries the right span. (It is unfortunately quite easy to accidentally use `DUMMY_SP` by calling the query on a `TyCtxt` instead of a `TyCtxtAt`.) r? @oli-obk @eddyb | ||||
| 2020-06-14 | keep root_span and tcx together | Ralf Jung | -29/+18 | |
| 2020-06-13 | run const_eval_raw with root_span | Ralf Jung | -1/+1 | |
| 2020-06-13 | avoid computing precise span for const_eval query | Ralf Jung | -1/+1 | |
| 2020-06-12 | fix caller_location intrinsic for Miri | Ralf Jung | -9/+2 | |
| 2020-06-12 | avoid computing cur_span all the time | Ralf Jung | -3/+5 | |
| 2020-06-12 | fix const_prop spans and re-bless tests | Ralf Jung | -3/+3 | |
| 2020-06-12 | make miri InterpCx TyCtxtAt a TyCtxt, and separately remember the root span ↵ | Ralf Jung | -22/+38 | |
| of the evaluation | ||||
| 2020-06-12 | make miri memory TyCtxtAt a TyCtxt | Ralf Jung | -2/+1 | |
| 2020-05-28 | standardize limit comparisons with `Limit` type | David Wood | -1/+1 | |
| This commit introduces a `Limit` type which is used to ensure that all comparisons against limits within the compiler are consistent (which can result in ICEs if they aren't). Signed-off-by: David Wood <david@davidtw.co> | ||||
| 2020-05-22 | Use `OnceCell` instead of `Once` | Dylan MacKenzie | -1/+1 | |
| 2020-05-10 | Miri interning: replace ICEs by proper errors, make intern_shallow type ↵ | Ralf Jung | -0/+3 | |
| signature more precise | ||||
| 2020-05-07 | Renamed "undef" stuff to "uninit" | Hanif Bin Ariffin | -4/+4 | |
| 1. InvalidUndefBytes -> InvalidUninitBytes 2. ScalarMaybeUndef -> ScalarMaybeUninit 3. UndefMask -> InitMask Related issue #71193 | ||||
| 2020-05-01 | remove AllocId generalization of Pointer | Ralf Jung | -5/+5 | |
| 2020-04-27 | Use `LocalDefId` in `typeck_tables_of` and `used_trait_imports` queries | marmeladema | -3/+5 | |
| 2020-04-24 | Remove `Option` from the return type of `def_kind`. | Eduard-Mihai Burtescu | -1/+1 | |
| 2020-04-24 | Rollup merge of #71475 - RalfJung:miri-frame-loc, r=ecstatic-morse | Dylan DPC | -30/+20 | |
| Miri Frame: use mir::Location to represent position in function I only recently learned that `Location` exists, and it seems to perfectly fit what Miri needs to represent which statement we are currently executing. :) r? @ecstatic-morse | ||||
| 2020-04-23 | Miri Frame: use mir::Location to represent position in function | Ralf Jung | -30/+20 | |
