From 536bcc99ff9d926b33ce1ad0682b91b72af17acd Mon Sep 17 00:00:00 2001 From: Colin Francis <131073567+colifran@users.noreply.github.com> Date: Mon, 18 Sep 2023 23:16:15 -0700 Subject: [PATCH] chore: replace `no_coverage` attribute with new `coverage` attribute (#268) * replace no_coverage with coverage('off') Signed-off-by: Francis * trying with just coverage(off) Signed-off-by: Francis * restoring no_coverage in lib and adding coverage(off) to typesrcipt synthesizer mod.rs Signed-off-by: Francis * replace no_coverage with coverage_attribute Signed-off-by: Francis --------- Signed-off-by: Francis --- src/lib.rs | 2 +- src/synthesizer/typescript/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 31354ce4..22b0d4b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(coverage_nightly, feature(no_coverage))] +#![cfg_attr(coverage_nightly, feature(coverage_attribute))] use indexmap::IndexMap; use parser::condition::ConditionFunction; diff --git a/src/synthesizer/typescript/mod.rs b/src/synthesizer/typescript/mod.rs index 315009f9..6addf93a 100644 --- a/src/synthesizer/typescript/mod.rs +++ b/src/synthesizer/typescript/mod.rs @@ -22,7 +22,7 @@ pub struct Typescript { } impl Typescript { - #[cfg_attr(coverage_nightly, no_coverage)] + #[cfg_attr(coverage_nightly, coverage(off))] #[deprecated(note = "Prefer using the Synthesizer API instead")] pub fn output(ir: CloudformationProgramIr) -> String { let mut output = Vec::new();