-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Rust] error: an inner attribute is not permitted in this context - #4968 regression #6261
Comments
This just entails removing the You might want to comment on: #5589 (comment)
|
Right, I think it's just a question of removing any |
Btw would your example work if you created a file,
? |
I'm running into this issue as well. As far as I can tell it doesn't matter if the |
Thoughts on adding a flag to |
Commit 9fa1d27 re-introduces
#![allow(unused_imports, dead_code)]
into generated rust code which causes the same error that was once resolved by #4968 and #5013The same as @csmoe we include generated rust code like:
Considering that our
build.rs
script generates the code in Cargo's given build directory as opposed to generating and storing our code in thesrc/
directory.This is the error I see:
We can't follow the approach used by the tutorials of doing:
since it's not possible to concatenate the path to
OUT_DIR
within#[path = ]
The text was updated successfully, but these errors were encountered: