Alan Somers

Results 656 comments of Alan Somers

I used a command inspired by that Twitter post to download and search every crate version. What I found was: * Nix * A few Nix forks, all since abandoned...

@Amanieu do you approve of the plan to fix libc and deal with the breakage by immediately publishing patch releases of Nix?

We would definitely patch more than just the current major version. I think I should be able to do the top five or six. But what about this DerefMut proposal....

That's a good idea, and it looks like it works! I'll amend the PR.

@Amanieu the remaining CI failure is due to a limitation in the style checker. It doesn't understand that the type declaration is part of an impl block. I'm not sure...

Rebased and squashed.

That would be handy, but there are infinitely many possible structs that might be parameterized on `&T`. Can you think of a more general way to design this feature, preferably...

That would only work if you want the mock method to return `&T`, right? That's already possible using `return_ref`. So I don't see what this proposal would add.

@gollth there isn't a way to do it automatically. You'll have to do it at least partly by hand. Perhaps something like this: ```rust struct MyStruct {...} impl MyStruct {...

Crap, I never thought of that. Are you saying that it's impossible to correctly implement PartialEq for a union type then? In that case, would the only way to do...