about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-06 23:12:06 +0100
committerGitHub <noreply@github.com>2021-11-06 23:12:06 +0100
commit43fee0e0a9ffae276d5b0e92e3243a6eccaadcd7 (patch)
tree614121464f688d48a598f65332476c0b00c7890b /compiler/rustc_span/src
parent5f0e6ca6a3bd38538fd6d14b21b5a6011a8c7baa (diff)
parentabb9a9853b094eeeea5ea784d188e842a17c5dc8 (diff)
downloadrust-43fee0e0a9ffae276d5b0e92e3243a6eccaadcd7.tar.gz
rust-43fee0e0a9ffae276d5b0e92e3243a6eccaadcd7.zip
Rollup merge of #90646 - BoxyUwU:funky_ice, r=estebank
type error go brrrrrrrr

Fixes #90444

when we relate something like:
`fn(fn((), (), u32))` with `fn(fn((), (), ()))`
we relate the inner fn ptrs:
`fn((), (), u32)` with `fn((), (), ())`
yielding a `TypeError::ArgumentSorts(_, 2)` which we then use as the `TypeError` for the `fn(fn(..))` which later causes the ICE as the `2` does not correspond to any input or output types in `fn(_)`

r? `@estebank`
Diffstat (limited to 'compiler/rustc_span/src')
0 files changed, 0 insertions, 0 deletions