about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-01 17:51:28 +0100
committerGitHub <noreply@github.com>2024-03-01 17:51:28 +0100
commitf23c6ddada3924caa6face1f851e70da20859f48 (patch)
treed825215041128b36e174e5fa27586e91c8afbebf /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent80549a881137dfc78b6b2c705440ff5221456d63 (diff)
parentcc13f8278f22243a6ecd82d062c4740787a0fc51 (diff)
downloadrust-f23c6ddada3924caa6face1f851e70da20859f48.tar.gz
rust-f23c6ddada3924caa6face1f851e70da20859f48.zip
Rollup merge of #121416 - veera-sivarajan:bugfix-120785, r=nnethercote
Improve error messages for generics with default parameters

Fixes #120785

Issue: Previously, all type parameters with default types were deliberately ignored to simplify error messages. For example, an error message for Box type would display `Box<T>` instead of `Box<T, _>`. But, this resulted in unclear error message when a concrete type was used instead of the default type.

Fix: This PR fixes it by checking if a concrete type is specified after a default type to display the entire type name or the simplified type name.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions