-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
I just updated my nightly to
rustc 1.32.0-nightly (b3af09205 2018-12-04)
And cloned indicatif
, trying to run the examples fails with
D:\3rdparty\indicatif> cargo r --example single
error: a bin target must be available forcargo run
when I write cargo r --example single
it works, but it used to work before also with cargo r
.
Why not anymore?
Similarly, cargo b --examples
just returns immediately with Finished dev [unoptimized + debuginfo] target(s) in 2.12s
without having built the examples. When I then run cargo build --examples
it actually builds them:
D:\3rdparty\indicatif> cargo build --examples
Compiling indicatif v0.10.3 (D:\3rdparty\indicatif)
warning: use of deprecated item 'rand::Rng::choose': use SliceRandom::choose ins
tead
--> examples\yarnish.rs:82:27
|
82 | let pkg = rng.choose(PACKAGES).unwrap();
| ^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'rand::Rng::choose': use SliceRandom::choose ins
tead
--> examples\yarnish.rs:84:31
|
84 | let cmd = rng.choose(COMMANDS).unwrap();
| ^^^^^^
Finished dev [unoptimized + debuginfo] target(s) in 4.24s
Also, when I try to use --
to pass args to my program, it doesn't work anymore (it definitely worked yesterday before updating my nightly):
> cargo r --release -- foo.txt bar.txt
Finished dev [unoptimized + debuginfo] target(s) in 0.40s
Running `D:\myproject\target\debug\pipeline.exe`
error: The following required arguments were not provided:
<path_en>
<path_de>
USAGE:
pipeline.exe [FLAGS] <path_en> <path_de>
For more information try --help
error: process didn't exit successfully: `D:\myproject\target\debug\pipeline.exe` (exit code: 1)
Btw, I'm using quicli which uses structopt/clap.
Notice that even though I'm passing --release
, cargo is running the debug version of my exe! (But again, if I use run
instead of r
, it behaves correctly!)
Something is seriously borked here..