diff options
author | Florian Diebold <[email protected]> | 2020-05-08 21:12:16 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-05-08 21:14:01 +0100 |
commit | a3d866e776f43c1ae717740bf0c507f4d9fe47cb (patch) | |
tree | e82b33ba64c1e0b36b33470d4d516200c2924d49 /crates/ra_hir_ty/src/infer/unify.rs | |
parent | f9ec7cebef732fbc9d4849d87d325efef5faadea (diff) |
Handle coercing function types to function pointers in match
E.g. in
```rust
match x {
1 => function1,
2 => function2,
}
```
we need to try coercing both to pointers. Turns out this is a special case in
rustc as well (see the link in the comment).
Diffstat (limited to 'crates/ra_hir_ty/src/infer/unify.rs')
0 files changed, 0 insertions, 0 deletions