kellpossible / cargo-i18n

A Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library
MIT License
121 stars 25 forks source link

Get tests working again on stable rust #16

Closed kellpossible closed 4 years ago

kellpossible commented 4 years ago

Currently tests only work on nightly because of this error:

error[E0658]: procedural macros cannot be expanded to statements
  --> src/lib.rs:142:1
   |
16 | language_loader!(MyLanguageLoader);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/54727

error: aborting due to previous error

which requires #![feature(proc_macro_hygiene)]. I'm not really sure why this only happens in some tests but not others which use this macro...

kellpossible commented 4 years ago

Looks like this is set to be solved with rust 1.45

kellpossible commented 4 years ago

Looks like this issue is no longer a problem now with Rust stable version 1.45.