From 341678b815051717c86cc63a00a5d256bf5b2a35 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 27 May 2013 17:38:51 -0700 Subject: [PATCH] rustc: Call str::is_empty --- src/librustc/back/rpath.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index 16d10d0a35e6..a84cb2cdbe10 100644 --- a/src/librustc/back/rpath.rs +++ b/src/librustc/back/rpath.rs @@ -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"); }