rust/tests
Matthias Krüger 16ff824133
Rollup merge of #138284 - compiler-errors:const-param-ty-annotation, r=BoxyUwU
Do not write user type annotation for const param value path

As I noted in the code comment, `DefKind::ConstParam` isn't actually *generic* over its own args, we just use the identity args from the body when lowering the value path so we have something to plug into the `EarlyBinder` we get back from `type_of` for the const param. So skip over it in `write_user_type_annotation_from_args`.

Somewhat unrelated, but I left an explanation for a somewhat mysterious quirk in the THIR lowering of user type annotations for patterns having to do with ctors and their `type_of` not actually being the type of the pattern node it's ascribing.

Fixes #138048

r? ``@BoxyUwU``
2025-03-11 19:35:32 +01:00
..
assembly Target definition for wasm32-wali-linux-musl to support the Wasm Linux 2025-03-10 21:26:45 -04:00
auxiliary tests: use minicore more 2025-02-24 09:26:54 +00:00
codegen Rollup merge of #122790 - Zoxc:dllimp-rev, r=ChrisDenton 2025-03-09 16:41:48 +01:00
codegen-units Remove -Zinline-in-all-cgus and clean up CGU partitioning tests 2025-01-27 23:48:47 -05:00
coverage coverage: Add some more cases to tests/coverage/holes.rs 2025-02-19 13:56:20 +11:00
coverage-run-rustdoc
crashes Rollup merge of #138284 - compiler-errors:const-param-ty-annotation, r=BoxyUwU 2025-03-11 19:35:32 +01:00
debuginfo Rollup merge of #137967 - mustartt:fix-aix-test-hangs, r=workingjubilee 2025-03-11 13:30:50 +01:00
incremental remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
mir-opt Update tests. 2025-03-10 12:20:05 +01:00
pretty Fix pretty printing of parsed attrs in hir_pretty 2025-03-10 02:04:26 +00:00
run-make Target definition for wasm32-wali-linux-musl to support the Wasm Linux 2025-03-10 21:26:45 -04:00
rustdoc Rollup merge of #137764 - compiler-errors:always-applicable-negative-impl, r=lcnr 2025-03-06 12:22:16 -05:00
rustdoc-gui Rollup merge of #137539 - GuillaumeGomez:copy-content-tests, r=notriddle 2025-02-25 13:07:34 +01:00
rustdoc-js
rustdoc-js-std Remove the common prelude module 2025-02-11 13:04:27 -08:00
rustdoc-json Fix pretty printing of parsed attrs in hir_pretty 2025-03-10 02:04:26 +00:00
rustdoc-ui doctests: build test bundle and harness separately 2025-03-10 01:47:36 +01:00
ui Rollup merge of #138284 - compiler-errors:const-param-ty-annotation, r=BoxyUwU 2025-03-11 19:35:32 +01:00
ui-fulldeps Revert "Don't test new error messages with the stage 0 compiler" 2025-03-08 22:45:16 +02:00
COMPILER_TESTS.md