Do not make `Deref<T>` generic params always a `&T` for traits.
authorMatt Corallo <git@bluematt.me>
Fri, 24 Jun 2022 01:20:33 +0000 (01:20 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 28 Jun 2022 17:16:28 +0000 (17:16 +0000)
commit2951949623b40708f0c56784a5bd270993da7e31
tree4aefcc064ffdcc6885593408d72205df05d94820
parent2e91e812f6172965fed6fed63dc3adf9883aec56
Do not make `Deref<T>` generic params always a `&T` for traits.

We never expect traits to be passed by reference, so when using
the new-style generic resolution, we shouldn't force all `Deref`s
to `&T`, at least if the `T` is a trait.
c-bindings-gen/src/types.rs