mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
2200910659
Record the correct target type when coercing fn items/closures to pointers Self-explanatory. We were previously not recording the *target* type of a coercion as the output of an adjustment. This should remedy that. We must also modify the function pointer casts in MIR typeck to use subtyping, since those broke since #118247. r? lcnr