rust/src/test
Ralf Jung f9c8a67593
Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk
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-15 12:01:01 +02:00
..
assembly Added comment about static variables 2020-05-24 08:20:40 +02:00
auxiliary test: Fix warnings in rust_test_helpers.c 2020-05-06 23:54:05 +03:00
codegen Rollup merge of #72977 - tblah:riscv-codegen-llvm10, r=nikomatsakis 2020-06-07 18:11:29 +02:00
codegen-units Keep codegen units unmerged when building compiler builtins 2020-04-06 00:00:00 +00:00
compile-fail Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
debuginfo ret has been optimized away in debuginfo test 2020-05-16 17:15:24 -07:00
incremental Auto merge of #72520 - jonas-schievink:cleanup-userty, r=matthewjasper 2020-05-25 06:17:15 +00:00
mir-opt Prefer the associated consts for pattern matching error 2020-06-13 01:18:18 +00:00
pretty pretty/asm.rs should only be tested for x86_64 and not AArch64 2020-06-13 00:41:39 -07:00
run-make Use Cell::take in a couple places 2020-04-26 11:50:53 +02:00
run-make-fulldeps Rollup merge of #72952 - pnkfelix:regression-test-for-issue-70924, r=nikomatsakis 2020-06-07 18:11:27 +02:00
run-pass-valgrind
rustdoc Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
rustdoc-js Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-js-std Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-ui remove extra space from crate-level doctest names 2020-05-15 23:56:23 -04:00
rustfix
ui Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk 2020-06-15 12:01:01 +02:00
ui-fulldeps Fix pprust-expr-roundtrip 2020-06-10 17:30:11 -04:00
COMPILER_TESTS.md