Rollup merge of #107413 - tshepang:pleasant-readin, r=Nilstrieb

make more pleasant to read
This commit is contained in:
Matthias Krüger 2023-01-29 06:14:19 +01:00 committed by GitHub
commit 74655dc507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ pub unsafe fn create_module<'ll>(
//
// FIXME(#34960)
let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or("");
let custom_llvm_used = cfg_llvm_root.trim() != "";
let custom_llvm_used = !cfg_llvm_root.trim().is_empty();
if !custom_llvm_used && target_data_layout != llvm_data_layout {
bug!(