Skip to content
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

error E0423 in syntex_syntax #8

Open
jayvdb opened this issue Aug 24, 2022 · 4 comments
Open

error E0423 in syntex_syntax #8

jayvdb opened this issue Aug 24, 2022 · 4 comments

Comments

@jayvdb
Copy link

jayvdb commented Aug 24, 2022

When I try using this on a few projects, I get a build error

error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`
   --> /home/jayvdb/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/symbol.rs:146:27
    |
146 |                       name: ast::Name($index),
    |                             ^^^^^^^^^
...
165 | / declare_keywords! {
166 | |     // Invalid identifier
167 | |     (0,  Invalid,        "")
168 | |
...   |
231 | |     (56, CrateRoot, "{{root}}")
232 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `declare_keywords` (in Nightly builds, run with -Z macro-backtrace for more info)

e.g. I tried this with https://github.com/swift-nav/esthri/tree/master/crates/esthri
also some private projects which otherwise build normally.

@robbespo00
Copy link

I have exactly the same problem

@christopinka
Copy link

Same. Using nightly at rustc 1.71.0-nightly (87b1f891e 2023-04-29). On m1 mac with nightly-aarch64-apple-darwin (default)

@christopinka
Copy link

@dan-da has something that works but has fallen behind again - https://github.com/dan-da/ml

@tigger1005
Copy link

tigger1005 commented Feb 5, 2024

I had the same problem and solved it with pointing to the GitHub repository directly. Because on crates.io the version 0.1.41 is linked and on the git repo the newest version is 1.59.

build = "build.rs"
[build-dependencies]
mml = { git = 'https://github.com/adjivas/ml.git', branch = 'master' }


[dependencies]
mml = { git = 'https://github.com/adjivas/ml.git', branch = 'master' }

Furthermore I had to change my folder layout from:

"
folder [utility]
* one.rs
* two.rs
utility.rs
"
to

"
folder [utility]
* one.rs
* two.rs
* mod.rs
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants