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

antlr does not compile due to depricated raw feature #25

Closed
jessberg opened this issue Jul 7, 2021 · 2 comments
Closed

antlr does not compile due to depricated raw feature #25

jessberg opened this issue Jul 7, 2021 · 2 comments

Comments

@jessberg
Copy link

jessberg commented Jul 7, 2021

If one uses nightly <=1.53, this crate compiles and works as expected. However, once the switch is made to 1.55, it no longer works and gives the error

 error[E0635]: unknown feature `raw`
 --> /home/runner/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/antlr-rust-0.2.0/src/lib.rs:4:12
  |
4 | #![feature(raw)]
  | 

I am importing this crate through

antlr-rust = "=0.2"

as mentioned in the readme.

I believe the error is because as mentioned here in the Rust documentation, the raw feature has been deprecated. Can this be updated so antlr doesn't use the raw feature?

@newca12
Copy link
Contributor

newca12 commented Jul 10, 2021

It seem that this feature is not even use.
Unfortunatly Rust cannot actually detect unused feature : rust-lang/rust#44232
Until the author publish a version without this unfortunate feature included, you can remove it yourself locally and add the local dependency to your project.

[dependencies]
antlr-rust = { path = "../antlr4/runtime/Rust" }

@jessberg
Copy link
Author

That worked for me - thanks!

@rrevenantt rrevenantt mentioned this issue Aug 12, 2021
36 tasks
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

Successfully merging a pull request may close this issue.

2 participants