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 02:26:57 +0000 (02:26 +0000)
commitdd93df5cbe8c47a208e27e88a7e5a68297c44035
treea1e78bb149942f0a486195bcc5a5dd6fa730fe83
parentc2b0f36ceab7dd860ff1bacaefeeff9c6d1cec11
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