I’m working on systemd-cron-next project and I depend on a few unstable features, so I had to use nightly Rust compiler.
I haven’t updated my rust compiler for a while and everything worked just fine, until recently I turned on Travis CI for the project, and it failed to compile with latest nightly.
I updated my compiler and try to cargo build my project, and it failed:
$ cargo build --verbose
...
Compiling rumblebars v0.3.0
Running `rustc /home/kstep/.cargo/registry/src/github.com-0a35038f75765ae4/rumblebars-0.3.0/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --cfg feature=\"default\" --cfg feature=\"stable\" --cfg feature=\"syntex\" --cfg feature=\"with-syntex\" --out-dir /home/kstep/git/systemd-crontab-generator/target/debug/build/rumblebars-ba09936dc968be81 --emit=dep-info,link -L dependency=/home/kstep/git/systemd-crontab-generator/target/debug/deps -L dependency=/home/kstep/git/systemd-crontab-generator/target/debug/deps --extern syntex=/home/kstep/git/systemd-crontab-generator/target/debug/deps/libsyntex-d3edc118a3ec6f5a.rlib -Awarnings`
Fresh rustlex_codegen v0.3.0
/home/kstep/.cargo/registry/src/github.com-0a35038f75765ae4/rumblebars-0.3.0/build.rs:5:5: 5:34 error: can't find crate for `rustlex_codegen`
/home/kstep/.cargo/registry/src/github.com-0a35038f75765ae4/rumblebars-0.3.0/build.rs:5 extern crate rustlex_codegen;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `rumblebars`.
Caused by:
Process didn't exit successfully: `rustc /home/kstep/.cargo/registry/src/github.com-0a35038f75765ae4/rumblebars-0.3.0/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --cfg feature="default" --cfg feature="stable" --cfg feature="syntex" --cfg feature="with-syntex" --out-dir /home/kstep/git/systemd-crontab-generator/target/debug/build/rumblebars-ba09936dc968be81 --emit=dep-info,link -L dependency=/home/kstep/git/systemd-crontab-generator/target/debug/deps -L dependency=/home/kstep/git/systemd-crontab-generator/target/debug/deps --extern syntex=/home/kstep/git/systemd-crontab-generator/target/debug/deps/libsyntex-d3edc118a3ec6f5a.rlib -Awarnings` (exit code: 101)
I use build.rs script with rumblebars crate to generate some files from templates.
I’m not sure since what nightly version the code was broken, but rustc 1.3.0-nightly (69ca01256 2015-07-23) is already broken, while rustc 1.3.0-nightly (7ea2674c7 2015-07-13) works perfectly fine, so whatever regression happened in rust nightly, it was between 7/13 and 7/23.
Any pointers?
Thanks in advance.