diff --git a/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs b/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs index 5f1ef6477af..5c196324b7d 100644 --- a/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs +++ b/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs @@ -741,12 +741,10 @@ fn should_check_siblings_for_module(module_path: &Path, parent_path: &Path) -> b } cfg_if::cfg_if! { - if #[cfg(feature = "bn254")] { - pub const CHOSEN_FIELD: &str = "bn254"; - } else if #[cfg(feature = "bls12_381")] { + if #[cfg(feature = "bls12_381")] { pub const CHOSEN_FIELD: &str = "bls12_381"; } else { - compile_error!("please specify a field to compile with"); + pub const CHOSEN_FIELD: &str = "bn254"; } }