Hi,
in order to perform benchmarks, I want to upgrade to rust nightly.
I tried this with rustup:
I'm going to ask you the value of each these installation options.
You may simply press the Enter key to leave unchanged.
Default host triple?
Default toolchain? (stable/beta/nightly)
nightly
Modify PATH variable? (y/n)
y
Current installation options:
default host triple: x86_64-unknown-linux-gnu
default toolchain: nightly
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
1
info: updating existing rustup installation
Rust is installed now. Great!
To get started you need Cargo's bin directory in your PATH environment
variable. Next time you log in this will be done automatically.
To configure your current shell run source $HOME/.cargo/env.
I ran the source command in my shell session, but cargo still complains:
error: use of unstable library feature 'test' (see issue #27812)
Your transcript doesn't include rustup actually downloading anything or you making sure PATH is set properly. It seems possible that you already had Rust installed via some other method. What do these commands show?
Eh, it seems cargo always has 'nightly' in its version so that doesn't indicate much, but cargo 0.11 matches rustc 1.10. If the paths are all right the next useful command would be rustup show.
Put benchmarks in a directory called benches. cargo bench will pick them up (of course this will only work with a nightly compiler).
Everything will else will work just fine without nightly.