The Rust project has developed a testing crate for the compiler itself. Because it includes some quite useful features, most importantly a benchmarker, it is accessible on nightly builds as the built-in test crate. Because it gets shipped with every nightly build, you don't need to add it to your Cargo.toml to use it.
The test crate is marked unstable because of its tight coupling to the compiler.