| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-09-14 | don't point at const usage site for resolution-time errors | Ralf Jung | -12/+2 | |
| also share the code that emits the actual error | ||||
| 2023-09-14 | move required_consts check to general post-mono-check function | Ralf Jung | -72/+35 | |
| 2023-09-14 | make it more clear which functions create fresh AllocId | Ralf Jung | -10/+7 | |
| 2023-09-14 | cleanup op_to_const a bit; rename ConstValue::ByRef → Indirect | Ralf Jung | -1/+1 | |
| 2023-09-14 | use AllocId instead of Allocation in ConstValue::ByRef | Ralf Jung | -8/+11 | |
| 2023-09-13 | Auto merge of #115820 - matthiaskrgr:rollup-kyglvpu, r=matthiaskrgr | bors | -32/+7 | |
| Rollup of 6 pull requests Successful merges: - #115736 (Remove `verbose_generic_activity_with_arg`) - #115771 (cleanup leftovers of const_err lint) - #115798 (add helper method for finding the one non-1-ZST field) - #115812 (Merge settings.css into rustdoc.css) - #115815 (fix: return early when has tainted in mir pass) - #115816 (Disabled socketpair for Vita) r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2023-09-12 | Introduce Machine::POST_MONO_CHECKS. | Camille GILLOT | -4/+9 | |
| 2023-09-12 | add helper method for finding the one non-1-ZST field | Ralf Jung | -32/+7 | |
| 2023-09-12 | Auto merge of #115705 - cjgillot:const-prop-aggregate, r=oli-obk | bors | -5/+6 | |
| Read from non-scalar constants and statics in dataflow const-prop DataflowConstProp is designed to handle scalar values. When MIR features an assignment from a non-scalar constant, we need to manually decompose it into the custom state space. This PR tweaks interpreter callbacks to allow reusing `eval_mir_constant` without having a stack frame to get a span from. r? `@oli-obk` cc `@jachris` | ||||
| 2023-09-11 | Use write_immediate. | Camille GILLOT | -2/+2 | |
| 2023-09-11 | Remove cur_span hook. | Camille GILLOT | -12/+3 | |
| 2023-09-11 | Inline callback. | Camille GILLOT | -0/+1 | |
| 2023-09-11 | Return ImmTy in discriminant_for_variant. | Camille GILLOT | -5/+6 | |
| 2023-09-11 | Support non-scalar constants. | Camille GILLOT | -3/+11 | |
| 2023-09-09 | handle/hack for arbitrary-self dyn receivers | Ralf Jung | -32/+44 | |
| 2023-09-09 | implement and test ABI compatibility for transparent wrappers around NPO types | Ralf Jung | -14/+27 | |
| 2023-09-09 | implement and test fn ptr ABI compatibility rules | Ralf Jung | -2/+7 | |
| 2023-09-09 | give extra context to ABI mismatch errors | Ralf Jung | -14/+8 | |
| 2023-09-09 | interpret: change ABI-compat test to be type-based, so the test is ↵ | Ralf Jung | -50/+125 | |
| consistent across targets | ||||
| 2023-09-08 | Auto merge of #115372 - RalfJung:abi-assert-eq, r=davidtwco | bors | -66/+12 | |
| add rustc_abi(assert_eq) to test some guaranteed or at least highly expected ABI compatibility guarantees This new repr(transparent) test is super useful, it would have found https://github.com/rust-lang/rust/issues/115336 and found https://github.com/rust-lang/rust/issues/115404, https://github.com/rust-lang/rust/issues/115481, https://github.com/rust-lang/rust/issues/115509. | ||||
| 2023-09-08 | turns out Layout has some more things to worry about -- move ABI comparison ↵ | Ralf Jung | -6/+2 | |
| into helper function like is_bool, and some special magic extra fields | ||||
| 2023-09-08 | accept some differences for rustc_abi(assert_eq), so that we can test more ↵ | Ralf Jung | -60/+10 | |
| things to be compatible | ||||
| 2023-09-06 | miri: catch function calls where the argument is caller-invalid / the return ↵ | Ralf Jung | -0/+7 | |
| value callee-invalid | ||||
| 2023-09-04 | interpret: make MemPlace, Place, Operand types private to the interpreter | Ralf Jung | -217/+298 | |
| 2023-08-31 | miri ABI check: fix handling of 1-ZST; don't accept sign differences | Ralf Jung | -24/+23 | |
| 2023-08-30 | miri function ABI check: specifically look for repr(transparent) | Ralf Jung | -71/+102 | |
| 2023-08-30 | interpret: make sure we accept transparent newtypes as ABI-compatible | Ralf Jung | -16/+36 | |
| also we were missing the case for Vector arguments, so handle those as well | ||||
| 2023-08-30 | storage_live: avoid computing the layout unless necessary | Ralf Jung | -14/+65 | |
| 2023-08-30 | unify passing of sized and unsized function arguments :-) | Ralf Jung | -31/+35 | |
| 2023-08-30 | a bit of meta-related cleanup on Projectable | Ralf Jung | -36/+32 | |
| 2023-08-30 | move marking-locals-live out of push_stack_frame, so it happens with ↵ | Ralf Jung | -84/+146 | |
| argument passing this entirely avoids even creating unsized locals in Immediate::Uninitialized state | ||||
| 2023-08-30 | interpret: fix projecting into an unsized field of a local | Ralf Jung | -97/+100 | |
| new invariant: Place::Local never refers to something unsized | ||||
| 2023-08-30 | Rollup merge of #115272 - RalfJung:miri-error-print, r=saethlin | Matthias Krüger | -5/+28 | |
| miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected errors This should fix the missing output encountered [here](https://github.com/rust-lang/rust/issues/115145#issuecomment-1694334410). r? `@saethlin` | ||||
| 2023-08-29 | const_eval and codegen: audit uses of is_zst | Ralf Jung | -12/+17 | |
| 2023-08-28 | Auto merge of #115182 - RalfJung:abi-compat-sign, r=b-naber | bors | -15/+29 | |
| miri ABI compatibility check: accept u32 and i32 If only the sign differs, then surely these types are compatible. (We do still check that `arg_ext` is the same, just in case.) Also I made it so that the ABI check must *imply* that size and alignment are the same, but it doesn't actively check that itself. With how crazy ABI constraints get, having equal size and align really shouldn't be used as a signal for anything I think... | ||||
| 2023-08-27 | miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected ↵ | Ralf Jung | -5/+28 | |
| errors then also use the new helper in a few other places | ||||
| 2023-08-25 | Auto merge of #115184 - saethlin:local-allocated-spans, r=RalfJung | bors | -5/+18 | |
| Record allocation spans inside force_allocation This expands https://github.com/rust-lang/miri/pull/2940 to cover locals r? `@RalfJung` | ||||
| 2023-08-25 | Add a doc comment for the new hook | Ben Kimock | -0/+3 | |
| Co-authored-by: Ralf Jung <post@ralfj.de> | ||||
| 2023-08-25 | Record allocation spans inside force_allocation | Ben Kimock | -5/+15 | |
| 2023-08-24 | miri ABI compatibility check: accept u32 and i32 | Ralf Jung | -15/+29 | |
| 2023-08-24 | when terminating during unwinding, show the reason why | Ralf Jung | -6/+14 | |
| 2023-08-20 | interpret: have assert_* intrinsics call the panic machinery instead of a ↵ | Ralf Jung | -14/+8 | |
| direct abort | ||||
| 2023-08-20 | interpret/miri: call panic_cannot_unwind lang item instead of hard-coding ↵ | Ralf Jung | -3/+14 | |
| the same message | ||||
| 2023-08-20 | give some unwind-related terminators a more clear name | Ralf Jung | -2/+2 | |
| 2023-08-08 | Rollup merge of #114615 - RalfJung:interpret-invalid-where, r=lcnr | Matthias Krüger | -5/+2 | |
| interpret: remove incomplete protection against invalid where clauses Cc https://github.com/rust-lang/rust/issues/97477, https://github.com/rust-lang/project-const-generics/issues/37 r? ``@lcnr`` | ||||
| 2023-08-08 | interpret: remove incomplete protection against invalid where clauses | Ralf Jung | -5/+2 | |
| 2023-08-08 | Auto merge of #114520 - RalfJung:unsized-valtrees, r=oli-obk | bors | -11/+15 | |
| simplify handling of valtrees for unsized types | ||||
| 2023-08-07 | Rollup merge of #114382 - scottmcm:compare-bytes-intrinsic, r=cjgillot | Matthias Krüger | -0/+22 | |
| Add a new `compare_bytes` intrinsic instead of calling `memcmp` directly As discussed in #113435, this lets the backends be the place that can have the "don't call the function if n == 0" logic, if it's needed for the target. (I didn't actually *add* those checks, though, since as I understood it we didn't actually need them on known targets?) Doing this also let me make it `const` (unstable), which I don't think `extern "C" fn memcmp` can be. cc `@RalfJung` `@Amanieu` | ||||
| 2023-08-06 | Add a new `compare_bytes` intrinsic instead of calling `memcmp` directly | Scott McMurray | -0/+22 | |
| 2023-08-07 | Rollup merge of #114542 - RalfJung:const-prop-nonsense, r=compiler-errors | Matthias Krüger | -4/+5 | |
| interpret: use ConstPropNonsense for more const-prop induced issues | ||||
