diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-05-27 17:38:51 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-06-01 18:48:07 -0700 |
| commit | 341678b815051717c86cc63a00a5d256bf5b2a35 (patch) | |
| tree | cef0fcb63e37752dad62e199c3e3ad7feb5b590d | |
| parent | 760c71dc4f1b362875c06170ee6c51dd9d6fe576 (diff) | |
| download | rust-341678b815051717c86cc63a00a5d256bf5b2a35.tar.gz rust-341678b815051717c86cc63a00a5d256bf5b2a35.zip | |
rustc: Call str::is_empty
| -rw-r--r-- | src/librustc/back/rpath.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index 16d10d0a35e..a84cb2cdbe1 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"); } |
