]> git.lizzy.rs Git - rust.git/commit
shim.rs: call `FnPtr`, not `Self`
authorJonas Schievink <jonasschievink@gmail.com>
Sun, 14 Jun 2020 21:46:06 +0000 (23:46 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Sun, 14 Jun 2020 21:46:15 +0000 (23:46 +0200)
commitaf97a117e538c5945cb19a4d3a045e509274d9cf
tree53a0e7c48502c81b581870f8909b8ce783a035d1
parent58062e1913248a2ad62072f51cc51db00bba66dc
shim.rs: call `FnPtr`, not `Self`

The `Call` terminator only works with `FnDef` and `FnPtr` types.
It happened to work with `Self` so far because it was always
substituted with the real type before being used.
src/librustc_mir/shim.rs