about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-11 19:35:32 +0100
committerGitHub <noreply@github.com>2025-03-11 19:35:32 +0100
commit16ff824133a0d7473a68066969fabceb522c8109 (patch)
tree89a54f4e44a65cabdc3b0e16ea8d7527fd92e8de /compiler/rustc_codegen_llvm/src/errors.rs
parent4ff58c910359ee334c3551728c3132724da6b862 (diff)
parent8ab05adc37667c3169fb120b3a9f53be9a909c3b (diff)
downloadrust-16ff824133a0d7473a68066969fabceb522c8109.tar.gz
rust-16ff824133a0d7473a68066969fabceb522c8109.zip
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``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions