about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-03-07 00:08:56 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-03-19 21:26:11 +0000
commitb1575b71d48a6452d2ff65b5fbb63858388b925b (patch)
tree4834ac1fb33220b5c5aa5c14cb8322e85939a11a /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent3f2159fda5019f5b599dd3cdf53f430878e82ed2 (diff)
downloadrust-b1575b71d48a6452d2ff65b5fbb63858388b925b.tar.gz
rust-b1575b71d48a6452d2ff65b5fbb63858388b925b.zip
Silence unecessary `!Sized` binding error
When gathering locals, we introduce a `Sized` obligation for each
binding in the pattern. *After* doing so, we typecheck the init
expression. If this has a type failure, we store `{type error}`, for
both the expression and the pattern. But later we store an inference
variable for the pattern.

We now avoid any override of an existing type on a hir node when they've
already been marked as `{type error}`, and on E0277, when it comes from
`VariableType` we silence the error in support of the type error.

Fix #117846.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions