-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Internal compiler error caused by wrapping Error from nanomsg crate in enum #42742
Comments
What is maybe an interesting additional information is that originally I got this error in a different setting: let mut buffer = vec![0; 100];
let a = match socket.nb_read(buffer.as_mut_slice()) {
Ok(_) => // do something here
Err(Error::TryAgain) => // do something else here
Err(e) => println!("{}", e)
}; where |
Switching from |
Is there a chance you could narrow this down to something that doesn't require nanomsg? |
The initial report contains a minimal test to reproduce the problem without nanomsg. I added info about the original problem with nanomsg, just in case. |
Could you repaste it into a comment? The only test I see in the initial report is below, and it contains nanomsg I believe.. extern crate nanomsg;
use nanomsg::Error;
enum A {
B(Error)
}
fn main() { } |
Sorry, I've talked too fast. I will try to extract the |
I finally found some time for the "minimal" code. Here it is, with no less than three crates ! I have not been able to reproduce the problem with a smaller structure. |
Hm, actually, looking at this more, I think this was #42007 which is fixed in nightly and beta. If possible, could you check whether that's the case for you (that the actual bug doesn't reproduce anymore)? |
Confirmed, it works fine with the following versions:
|
Would you mind if we closed this issue then? Seems like there's nothing left to do here--I don't think we'll want to release a patch stable release for this... |
I'm not the one who opened it in the first place, maybe @fuine has on opinion on that. |
Ah, right. Well, I'll close for now actually and if they disagree I'll reconsider. |
If this is resolved in beta/nightly then I'm ok with closing the issue, thanks for help! |
Minimal test case (thanks creduce):
Backtrace:
cargo
version:rustc
version:The text was updated successfully, but these errors were encountered: