-
Notifications
You must be signed in to change notification settings - Fork 312
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
ParseSyntaxError in wgpu-native #272
Comments
I investigated this a bit last night. To get source for parsing, cbindgen runs: cargo rustc --lib --manifest-path /Users/josh/Projects/wgpu-native/wgpu-native/Cargo.toml -p wgpu-native:0.1.0 -- -Z unstable-options --pretty=expanded But the output of this command doesn't compile in Rust, because it fails on the So I don't really expect syn to parse this because it doesn't even compile. It would be useful if somebody could help clarify whether the issue related to the rustc macro expansion, syn, or cbindgen? |
I would expect |
It seems related to rustc changing behavior for macro expansion between I have an example here which displays the difference in output https://gist.github.com/grovesNL/5d3ddc7b95c1939be26c64ba09f1ac2f I also mentioned it on a PR which appears to be related rust-lang/rust#57155 |
if you print something in macro, then this error will be raised. |
Repro steps on Linux:
git clone https://github.com/kvark/wgpu -b swap-chain cd wgpu RUST_BACKTRACE=1 make
Error:
The text was updated successfully, but these errors were encountered: