diff --git a/crates/cairo-lang-test-plugin/src/inline_macros/assert.rs b/crates/cairo-lang-test-plugin/src/inline_macros/assert.rs index a394a51b62a..742d215c99b 100644 --- a/crates/cairo-lang-test-plugin/src/inline_macros/assert.rs +++ b/crates/cairo-lang-test-plugin/src/inline_macros/assert.rs @@ -165,15 +165,6 @@ trait CompareAssertionPlugin: NamedPlugin { ", }); let (content, code_mappings) = builder.build(); - let mut diagnostics = vec![]; - if !metadata.cfg_set.contains(&Cfg::kv("target", "test")) - && !metadata.cfg_set.contains(&Cfg::name("test")) - { - diagnostics.push(PluginDiagnostic::error( - syntax, - format!("`{}` macro is only available in test mode.", Self::NAME), - )); - } InlinePluginResult { code: Some(PluginGeneratedFile { name: format!("{}_macro", Self::NAME).into(), @@ -182,7 +173,7 @@ trait CompareAssertionPlugin: NamedPlugin { aux_data: None, diagnostics_note: Default::default(), }), - diagnostics, + diagnostics: vec![], } } }