| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-10-02 | have better explanation for `relate_types` | ouz-a | -3/+3 | |
| 2023-10-02 | change is_subtype to relate_types | ouz-a | -11/+26 | |
| 2023-10-02 | Add docs, remove code, change subtyper code | ouz-a | -28/+21 | |
| 2023-10-02 | subtyping_projections | ouz-a | -1/+33 | |
| 2023-10-01 | Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum | bors | -4/+4 | |
| Partially outline code inside the panic! macro This outlines code inside the panic! macro in some cases. This is split out from https://github.com/rust-lang/rust/pull/115562 to exclude changes to rustc. | ||||
| 2023-09-30 | dont call mir.post_mono_checks in codegen | Ralf Jung | -13/+20 | |
| 2023-09-28 | Add a mir validation check to prevent OpaqueCast after analysis passes finish | Oli Scherer | -0/+8 | |
| 2023-09-28 | Skip reinterning if nothing changed | Oli Scherer | -1/+3 | |
| 2023-09-28 | Strip `OpaqueCast` during `RevealAll`. | Oli Scherer | -1/+1 | |
| 2023-09-26 | const-eval: make misalignment a hard error | Ralf Jung | -105/+29 | |
| 2023-09-26 | subst -> instantiate | lcnr | -5/+6 | |
| 2023-09-23 | Remove GeneratorWitness and rename GeneratorWitnessMIR. | Camille GILLOT | -8/+3 | |
| 2023-09-22 | fix(const_eval): correctly check const type for function pointers | Evan Merlock | -15/+23 | |
| - uses TypeReader for resolving local/return ty to support case where function pointer is before another type in a compound type | ||||
| 2023-09-22 | Have a single struct for queries and hook | Oli Scherer | -4/+3 | |
| 2023-09-22 | Add a way to decouple the implementation and the declaration of a TyCtxt method. | Oli Scherer | -7/+8 | |
| 2023-09-21 | Auto merge of #116010 - RalfJung:more-typed-immediates, r=oli-obk | bors | -177/+183 | |
| interpret: more consistently use ImmTy in operators and casts The diff in src/tools/miri/src/shims/x86/sse2.rs should hopefully suffice to explain why this is nicer. :) | ||||
| 2023-09-21 | Rollup merge of #115972 - RalfJung:const-consistency, r=oli-obk | Guillaume Gomez | -16/+16 | |
| rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const Also, be more consistent with the `to/eval_bits` methods... we had some that take a type and some that take a size, and then sometimes the one that takes a type is called `bits_for_ty`. Turns out that `ty::Const`/`mir::ConstKind` carry their type with them, so we don't need to even pass the type to those `eval_bits` functions at all. However this is not properly consistent yet: in `ty` we have most of the methods on `ty::Const`, but in `mir` we have them on `mir::ConstKind`. And indeed those two types are the ones that correspond to each other. So `mir::ConstantKind` should actually be renamed to `mir::Const`. But what to do with `mir::Constant`? It carries around a span, that's really more like a constant operand that appears as a MIR operand... it's more suited for `syntax.rs` than `consts.rs`, but the bigger question is, which name should it get if we want to align the `mir` and `ty` types? `ConstOperand`? `ConstOp`? `Literal`? It's not a literal but it has a field called `literal` so it would at least be consistently wrong-ish... ``@oli-obk`` any ideas? | ||||
| 2023-09-21 | Prevent promotion of const fn calls in inline consts | Oli Scherer | -2/+2 | |
| 2023-09-21 | rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const | Ralf Jung | -16/+16 | |
| 2023-09-21 | try to avoid some layout_of calls | Ralf Jung | -35/+34 | |
| 2023-09-20 | stronger consistency check in ImmTy::from_immediate | Ralf Jung | -3/+11 | |
| 2023-09-20 | interpret: less debug-printing of types | Ralf Jung | -39/+29 | |
| 2023-09-20 | interpret: more consistently use ImmTy in operators and casts | Ralf Jung | -115/+124 | |
| 2023-09-20 | the Const::eval_bits methods don't need to be given the Ty | Ralf Jung | -1/+1 | |
| 2023-09-19 | adjust constValue::Slice to work for arbitrary slice types | Ralf Jung | -27/+38 | |
| 2023-09-19 | move ConstValue into mir | Ralf Jung | -31/+27 | |
| this way we have mir::ConstValue and ty::ValTree as reasonably parallel | ||||
| 2023-09-18 | Auto merge of #115748 - RalfJung:post-mono, r=oli-obk | bors | -96/+39 | |
| move required_consts check to general post-mono-check function This factors some code that is common between the interpreter and the codegen backends into shared helper functions. Also as a side-effect the interpreter now uses the same `eval` functions as everyone else to get the evaluated MIR constants. Also this is in preparation for another post-mono check that will be needed for (the current hackfix for) https://github.com/rust-lang/rust/issues/115709: ensuring that all locals are dynamically sized. I didn't expect this to change diagnostics, but it's just cycle errors that change. r? `@oli-obk` | ||||
| 2023-09-15 | make interpreter type Debug impl independent of Ty debug impl | Ralf Jung | -4/+17 | |
| 2023-09-14 | don't point at const usage site for resolution-time errors | Ralf Jung | -22/+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 | -79/+42 | |
| 2023-09-14 | Auto merge of #115804 - RalfJung:valtree-to-const-val, r=oli-obk | bors | -51/+52 | |
| consistently pass ty::Const through valtrees Some drive-by things extracted from https://github.com/rust-lang/rust/pull/115748. | ||||
| 2023-09-14 | don't force all slice-typed ConstValue to be ConstValue::Slice | Ralf Jung | -36/+29 | |
| 2023-09-14 | valtree_to_const_value: add fast-path for Scalar tuples/structs | Ralf Jung | -1/+16 | |
| 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 | -27/+14 | |
| 2023-09-14 | use AllocId instead of Allocation in ConstValue::ByRef | Ralf Jung | -12/+12 | |
| 2023-09-14 | a bit of cleanup in valtree_to_const_value | Ralf Jung | -51/+37 | |
| 2023-09-13 | Auto merge of #115820 - matthiaskrgr:rollup-kyglvpu, r=matthiaskrgr | bors | -55/+11 | |
| 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-13 | Rollup merge of #115798 - RalfJung:non_1zst_field, r=wesleywiser | Matthias Krüger | -32/+7 | |
| add helper method for finding the one non-1-ZST field | ||||
| 2023-09-13 | Rollup merge of #115771 - RalfJung:no-more-const-err-lint, r=oli-obk | Matthias Krüger | -23/+4 | |
| cleanup leftovers of const_err lint Some code / comments seem to not have been updated when const_err was turned into a hard error, so we can do a bit of cleanup here. r? `@oli-obk` | ||||
| 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 | cleanup leftovers of const_err lint | Ralf Jung | -23/+4 | |
| 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 | |
