-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Never returns (only on my library) #15
Comments
@rukai thank you for the report, I'll look into it :) |
@rukai I can't reproduce. Could you provide me with more information? (operating system, target, environment variables, do you have a cargo config file?, etc.). I just tested this on MacOS X:
and it consistently outputs:
Then I tried with
and I get: brawllib_rs::chr0::Keyframe::get_value_interpolated_n_entry (src/chr0.rs:319):
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 120
mov ebx, ecx
call <I as core::iter::traits::IntoIterator>::into_iter
... which hints that without incremental compilation the function is not present in the final binary (maybe it's getting inlined or something). But even if it is not present in the binary, you should just get an error message instead of |
OS: Arch linux Only rust environment variables I have are:
.cargo/config only contains my crates.io key I have also tried without nll and without incremental compilation and they dont seem to affect it. I was also able to reduce the problem down from my entire library to just any function that uses a macro.
or
or
|
Could you maybe run |
Thanks, that actually looks fine :/ I'll try to get hold of a Linux machine and see if I can reproduce it there. |
So I did the |
Good to hear that!
This is possible. I just set up a Linux VM so that I can try it there. Will try it without installing rust-src first. If |
So this is very weird. On Linux, if I do a Could you try if not using |
CARGO_INCREMENTAL=0 does not resolve the problem for me. I believe I've found the issue although it doesnt explain why you arent running into the issue on mac os. the stacktrace looks like:
Havnt been able to test it though, as I've got to run. |
Nice find. So I've switched to Could you try using the master branch with |
Yep, running: gives:
|
wow |
@rukai I've fixed this on master, would be cool if you could check that it does indeed work :) |
I've released 0.1.13 with the fix. |
Tested on the latest nightly with CARGO_INCREMENTAL=1
The previous nightly I was using was broken for another reason.
The examples work fine:
However I tried it on the library I am working on and it never returns and doesnt output anything.
Its at 0% CPU usage, so not sure what its actually doing...
The crate has nll enabled.
The text was updated successfully, but these errors were encountered: