error E0423 in syntex_syntax
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.
I have exactly the same problem
Same. Using nightly at rustc 1.71.0-nightly (87b1f891e 2023-04-29). On m1 mac with nightly-aarch64-apple-darwin (default)
@dan-da has something that works but has fallen behind again - https://github.com/dan-da/ml
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 "