From 38392fbaa9d0796d1f624c507723dbdc32fd2060 Mon Sep 17 00:00:00 2001 From: jyn Date: Sat, 8 Jul 2023 14:20:57 -0500 Subject: [PATCH] fixup! `has-rust-patches` doesn't make sense to set for managed submodules --- src/bootstrap/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index bd962ecb2faf1..276b544b7ba87 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1516,7 +1516,7 @@ impl Config { } if let Some(patches) = cfg.llvm_has_rust_patches { assert!( - config.submodules.is_some(), + config.submodules.is_none(), "cannot set `llvm-has-rust-patches` for a managed submodule" ); target.llvm_has_rust_patches = Some(patches);