Emilio Cobos Álvarez

Results 777 comments of Emilio Cobos Álvarez

I find all the first ones are strictly worse than the current behavior. With the current behavior at least you don't have ABI issues, and you can pass it by...

Well, it will behave normally, right? As in, a long double value that you got from C should be fine to be passed to C again. It's only constructing rust...

> Could we, for the time, emit some sort of dummy struct value with a meaningful name that's the correct size and alignment, and then has the bits as an...

Yeah, `#[repr(transparent)]` should be fine, though bindgen supports not generating `repr(transparent)`. But as long as we fallback to the current behavior if there's no `#[repr(transparent)]` support it should be ok,...

`#[repr(C)]` is out of the game because structs are not abi-compatible with ints, I think. Though I guess it can be technically better than the current solution in practice, as...

I'm not sure how I feel about it. On one hand it makes breaking changes much more common, on the other hand it doesn't change all that often anymore I...

Can you clarify where does that error come from? Bindgen doesn't link anything for you so I suspect the issue is somewhere else.

I don't think there has been much progress here, but I don't think this should be particularly hard to implement, happy to help.

Yeah this is the reason the attribute detection is off by default. I recall looking into this in the past and not finding a particularly better way of finding the...