-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Failed to get crate data for crate18' #85370
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
Comments
The rustc shouldn't ICE in this situation, though. I'm not sure why it isn't displaying an error about not being able to find the dependencies. |
I'm getting this error with the following example with # Cargo.toml
[package]
name = "ice"
version = "0.1.0"
edition = "2018"
[lib]
proc-macro = true
[dependencies]
neon = "0.8" // src/lib.rs
use neon::types::Value;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn proc(attr: TokenStream, item: TokenStream) -> TokenStream {
panic!()
} // tests/integration.rs
use ice::proc;
I thought there might be something wrong with my installation because the project worked with a lot more code than this and then stopped working, but I reproduced the issue on a fresh Docker image so maybe not. Let me know if there's more information I can provide. |
I believe that the issue with "Failed to get crate data for crate18" for these particular cases has been fixed by #83404. That should be in 1.53 (beta or nightly). I'm going to close this as resolved by #83404. @Heliozoa I think the nightly behavior (undefined symbol) is likely due to some linking issues with the neon C library? If you want to, you can file a new issue for that. |
While trying to compile an example for rav1e encoder I got the next error
Maybe I'm doing it wrong because I'm using
rustc
directly:rustc --edition=2018 --extern rav1e=../target/release/librav1e.rlib simple_encoding.rs
I tried using beta and nightly versions but I got other errors.
Code
https://github.com/xiph/rav1e/blob/master/examples/simple_encoding.rs
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: