I am trying to revive a project that was last modified 2 years ago and it has plenty of deprecated syntax. The original unmodified code in context.
I removed the feature
and phase
lines and changed all occurrences of deriving
to derive
; see after my modifications. I have also modified other files but they are the same kinds of modifications as in this file.
I'm running Rust 1.9 on Arch.
The compiler output. Note that this isn't cargo (as far as I can tell) but it supposedly worked once upon a time:
me@pc[equinox/bin]% make tests
rustc ../src/main.rs -L ../lib/ --test -o equinox-tests
../src/engine/math.rs:244:10: 244:14 error: `#[derive]` for custom traits is not stable enough for use and is subject to change (see issue #29644)
../src/engine/math.rs:244 #[derive(Show)]
^~~~
error: aborting due to previous error
make: *** [makefile:8: tests] Error 101
me@pc[equinox/bin]%
Which didn't sound too bad until I read this from Reddit (can't link any more):
The idea is that there is an external tool that removes the
derive
attributes and replaces them with generated code. If the Rust compiler itself is seeing those attributes, it means that you've missed a step.