about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-17 22:33:21 +0100
committerGitHub <noreply@github.com>2022-11-17 22:33:21 +0100
commit43fa2918d1e4dfd90f83ce46aac8373ae8120068 (patch)
tree450ccfac1cd4b1b2c6a8224466d104984702229a /compiler/rustc_codegen_llvm/src/errors.rs
parent68a8109ddbb44fdfdd455036d2e53a8bf3545d4e (diff)
parent75afb22331daececeba38a3efb0134348d6c14d9 (diff)
downloadrust-43fa2918d1e4dfd90f83ce46aac8373ae8120068.tar.gz
rust-43fa2918d1e4dfd90f83ce46aac8373ae8120068.zip
Rollup merge of #104508 - compiler-errors:dyn-return, r=oli-obk
Check `dyn*` return type correctly

In `check_fn`, if the declared return type is `dyn Trait`, then we check the return type separately to produce better diagnostics, because this is never valid -- however, when `dyn*` was introduced, this check was never adjusted to only account for *unsized* `dyn Trait` and not *sized* `dyn* Trait`.

Fixes #104501
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions