2 ms·
It would be more advisable to add this as a clippy hint, because `&T` and `T` are not always equivalent wrt. FFI.
by zozbot234 4y ago
It would be more advisable to add this as a clippy hint, because `&T` and `T` are not always equivalent wrt. FFI.
- kibwen 4y agoIndeed, but the compiler is still capable of doing it on a case-by-case basis. Quite often the observed semantics are identical and it's easy for the backend to see that a pointer has been created only to be immediately dereferenced.