Oli Scherer
Oli Scherer
> Would that mean less work for the compiler compared to [#3582 (comment)](https://github.com/rust-lang/rfcs/issues/3582#issuecomment-1984275401) that only works because https://github.com/rust-lang/rust/pull/112879 hasn't landed in forever because it's such a massive perf regression
Huh... why does this get compiled in `$HOME/.cargo` at all instead of in the `target` dir. Do you have something set up to make cargo share its target directories? We...
So, we got a little further. I guess it would be doable to start magically creating function pointers to "dynamically loaded libraries" (like we care what any code thinks about...
Dynamically loading functions works now... but huh? ``` error[E0080]: constant evaluation error: attempted to do invalid arithmetic on pointers that would leak base addresses, e.g., comparing pointers into different allocations...
I found the issue. Our pointer vs int comparison code gets the alignment of the allocation in question, and will not allow you to compare a function pointers 0-size 1-align...
I added a hack to also allow `1` for now, will think about this in more detail later. Now I'm hitting a stacked borrows error (see code at https://github.com/carllerche/mio/blob/3eb6a80329a466e00272bf72c8a08d939f439cda/src/sys/unix/dlsym.rs#L35) I...
You mean like we [shouldn't even treat zero specially](https://github.com/rust-lang/rust/issues/57897)? :rofl:
We could hide the interior mutability by providing a `FileDescriptor` struct that hides the `Rc` and provides the right mutability API and forwards it to the inner one That would...
Please keep a welcoming and cooperative discussion environment. Disagreement is fine, but do it consructively and without insults or attacks
This RFC is on hiatus until we have an implementation and will then mirror the implementation. For now out of various concerns, I have no plans on implementing `gen fn`...