rustc: Call str::is_empty

This commit is contained in:
Tim Chevalier 2013-05-27 17:38:51 -07:00
parent 760c71dc4f
commit 341678b815

View File

@ -178,7 +178,7 @@ pub fn get_absolute_rpath(lib: &Path) -> Path {
pub fn get_install_prefix_rpath(target_triple: &str) -> Path {
let install_prefix = env!("CFG_PREFIX");
if install_prefix == ~"" {
if install_prefix.is_empty() {
fail!("rustc compiled without CFG_PREFIX environment variable");
}