about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-03 20:38:12 +0200
committerGitHub <noreply@github.com>2023-06-03 20:38:12 +0200
commit20cbbbb9774f419f17164c4fbbf9ed51d615f993 (patch)
tree4de211bf16412a8f9bd961fa15fa2ae7f78beb96 /compiler/rustc_interface/src
parentea8b4ff2a6a8a23756ae76643989bd6844e462de (diff)
parent9f70efb31aa9345e07b547b3d4f63a1e08b53c49 (diff)
downloadrust-20cbbbb9774f419f17164c4fbbf9ed51d615f993.tar.gz
rust-20cbbbb9774f419f17164c4fbbf9ed51d615f993.zip
Rollup merge of #112215 - compiler-errors:check-sized-better, r=cjgillot
only suppress coercion error if type is definitely unsized

we previously suppressed coercion errors when the return type was `dyn Trait` because we expect a far more descriptive `Sized` trait error to be emitted instead, however the code that does this suppression does not consider where-clause predicates since it just looked at the HIR. let's do that instead by creating an obligation and checking if it may hold.

fixes #110683
fixes #112208
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions