ml icon indicating copy to clipboard operation
ml copied to clipboard

error E0423 in syntex_syntax

Open jayvdb opened this issue 3 years ago • 4 comments

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.

jayvdb avatar Aug 24 '22 10:08 jayvdb

I have exactly the same problem

robbespo00 avatar Feb 10 '23 16:02 robbespo00

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

christopinka avatar Apr 30 '23 13:04 christopinka

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

christopinka avatar Apr 30 '23 17:04 christopinka

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 "

tigger1005 avatar Feb 05 '24 15:02 tigger1005