rust/tests
Guillaume Gomez 208f6ed95c
Rollup merge of #115972 - RalfJung:const-consistency, r=oli-obk
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 13:25:39 +02:00
..
assembly
auxiliary
codegen Auto merge of #115734 - tmiasko:kcfi-no-core, r=compiler-errors 2023-09-20 05:24:34 +00:00
codegen-units
coverage-map coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
debuginfo
incremental
mir-opt Rollup merge of #115972 - RalfJung:const-consistency, r=oli-obk 2023-09-21 13:25:39 +02:00
pretty
run-coverage coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
run-coverage-rustdoc
run-make Auto merge of #115627 - compiler-errors:icedump-no-std, r=m-ou-se 2023-09-19 16:56:25 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Implement new eBNF for codeblock attributes 2023-09-15 21:32:28 +02:00
rustdoc-gui rustdoc: add test cases, and fix, search tabs 2023-09-19 21:46:06 -07:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Update tests for custom classes 2023-09-19 17:29:39 +02:00
ui Rollup merge of #115936 - oli-obk:inline_const_promotion, r=RalfJung 2023-09-21 13:25:38 +02:00
ui-fulldeps Auto merge of #115677 - matthewjasper:let-expr-recovery, r=b-naber 2023-09-14 19:56:55 +00:00
COMPILER_TESTS.md