Results 57 comments of Andrei Homescu

This keeps coming up in our internal discussion occasionally, but there are some corner cases where they're not equivalent (I think in static initializers, I have to look up the...

I checked last night, `null` and `null_mut` have been const fns since 2015.

`f128` is [implemented](https://github.com/jkarns275/f128/blob/master/f128_internal/src/f128_t.rs#L12) in its crate as ```Rust #[repr(C)] #[derive(Clone, Copy)] pub struct f128(pub(crate) [u8; 16]); ``` At first I thought the fix was as simple as enabling `VaArgSafe` for...

> IIUC, currently C2Rust is using a single Relooper algorithm for all control flow (?), but given how common this pattern is, perhaps it's worth special-casing it and solving separately?...

Oh yes sorry, I was planning to respond to this but it fell through the cracks. Unfortunately we (Immunant) don't have the time or resources to work on this right...

> This happens because the mutable borrow of f is invalidated when f.len is mutated. Sounds like the fix will be non-trivial, if possible at all, since we try to...

> This is the exact problem they were intended to fix, as I understand it. The RFC gives other motivations: taking pointers to unaligned structure fields (which you can't do...

Looks like `std::ptr::addr_of` and `addr_of_mut` got stabilized, so we should use them.

> I've started translating a rather large C project and this is my main pain point. Each generated file has an extensive amount of boilerplate that is identical across files...

To cross-compile with clang, you need at least the following: 1. The correct compiler flags (and preprocessor flags, but those are not sufficient by themselves) for the target system, including...