mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-15 17:23:10 +00:00
rustc: Call str::is_empty
This commit is contained in:
parent
760c71dc4f
commit
341678b815
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user