granite-rust/tests
Matthias Krüger 050e0cc6eb
Rollup merge of #134314 - compiler-errors:default-struct-value-const, r=estebank
Make sure to use normalized ty for unevaluated const in default struct value

This cleans up the way that we construct the `mir::Const::Unevaluated` for default struct values. We were previously using `from_unevaluated`, which doesn't normalize the type, and is really only used for inline assembly. Other codepaths (such as `ExprKind::NamedConst`) use the type from the body.

Also, let's stop using `literal_operand`, which also is really not meant for calls other than for literal comparisons in pattern lowering.

Also move all of the tests to a separate subdirectory so they don't need to have the same prefix on all the test files.

Fixes #134298
r? estebank or reassign
2024-12-16 08:03:32 +01:00
..
assembly Auto merge of #133818 - matthiaskrgr:rollup-iav1wq7, r=matthiaskrgr 2024-12-04 00:47:09 +00:00
auxiliary Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
codegen Simplify the GEP instruction for index 2024-12-15 19:01:45 +08:00
codegen-units Remove polymorphization 2024-12-06 16:42:09 -05:00
coverage Stabilize async closures 2024-12-13 00:04:56 +00:00
coverage-run-rustdoc coverage: Restrict empty-span expansion to only cover { and } 2024-11-08 20:43:08 +11:00
crashes Add a regression test for #134162 2024-12-14 17:07:20 +08:00
debuginfo Reformat Python code with ruff 2024-12-04 23:03:44 +01:00
incremental Add more info on type/trait mismatches for different crate versions 2024-12-07 18:18:08 +00:00
mir-opt Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung 2024-12-14 22:43:39 +00:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make Rollup merge of #133633 - jyn514:hide-linker-args, r=bjorn3,jyn514 2024-12-15 20:01:37 +11:00
rustdoc Stabilize async closures 2024-12-13 00:04:56 +00:00
rustdoc-gui Update GUI test after rebase 2024-12-05 22:50:21 +01:00
rustdoc-js rustdoc-search: fix mismatched path when parent re-exported twice 2024-12-12 13:29:18 -07:00
rustdoc-js-std rustdoc-search: update test with now-shorter function path 2024-12-13 09:08:44 -07:00
rustdoc-json Rollup merge of #133721 - aDotInTheVoid:rdj-dyn-link, r=GuillaumeGomez 2024-12-02 17:36:05 +01:00
rustdoc-ui Account for /// when rendering multiline spans 2024-12-13 18:48:33 +00:00
ui Rollup merge of #134314 - compiler-errors:default-struct-value-const, r=estebank 2024-12-16 08:03:32 +01:00
ui-fulldeps Rollup merge of #134043 - ehuss:unicode-version, r=jieyouxu 2024-12-09 23:39:05 +01:00
COMPILER_TESTS.md