From 2c41294190ad687f97a2ef70cb51d3727c3a566c Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sat, 28 Dec 2024 19:16:23 +0300 Subject: [PATCH] *: update coverage_attribute handling - remove allow(stable_features), coverage_attribute stabilization was reverted - remove coverage(off) from tests/, as cargo llvm-cov already takes care of excluding tests/ form coverage --- repology-vulnupdater/src/main.rs | 1 - repology-webapp-test-utils/src/lib.rs | 1 - repology-webapp/src/lib.rs | 1 - repology-webapp/tests/integration.rs | 4 ---- repology-webapp/tests/snapshot.rs | 4 ---- 5 files changed, 11 deletions(-) diff --git a/repology-vulnupdater/src/main.rs b/repology-vulnupdater/src/main.rs index 83a12d5..3cfbed1 100644 --- a/repology-vulnupdater/src/main.rs +++ b/repology-vulnupdater/src/main.rs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-3.0-or-later #![feature(duration_constructors)] -#![allow(stable_features)] // for coverage_attribute, remove after switching to newer nighly on prod #![feature(coverage_attribute)] mod args; diff --git a/repology-webapp-test-utils/src/lib.rs b/repology-webapp-test-utils/src/lib.rs index 17657ed..ecbebe6 100644 --- a/repology-webapp-test-utils/src/lib.rs +++ b/repology-webapp-test-utils/src/lib.rs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov // SPDX-License-Identifier: GPL-3.0-or-later -#![allow(stable_features)] // for coverage_attribute, remove after switching to newer nighly on prod #![feature(coverage_attribute)] pub mod http; diff --git a/repology-webapp/src/lib.rs b/repology-webapp/src/lib.rs index 8614662..c9da211 100644 --- a/repology-webapp/src/lib.rs +++ b/repology-webapp/src/lib.rs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-3.0-or-later #![feature(iterator_try_collect)] -#![allow(stable_features)] // for coverage_attribute, remove after switching to newer nighly on prod #![feature(coverage_attribute)] #![feature(stmt_expr_attributes)] #![feature(assert_matches)] diff --git a/repology-webapp/tests/integration.rs b/repology-webapp/tests/integration.rs index 72e0544..e478c5b 100644 --- a/repology-webapp/tests/integration.rs +++ b/repology-webapp/tests/integration.rs @@ -1,8 +1,4 @@ // SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov // SPDX-License-Identifier: GPL-3.0-or-later -#![allow(stable_features)] // for coverage_attribute, remove after switching to newer nighly on prod -#![feature(coverage_attribute)] -#![coverage(off)] - mod integration_tests; diff --git a/repology-webapp/tests/snapshot.rs b/repology-webapp/tests/snapshot.rs index 4128a45..74b6f85 100644 --- a/repology-webapp/tests/snapshot.rs +++ b/repology-webapp/tests/snapshot.rs @@ -1,8 +1,4 @@ // SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov // SPDX-License-Identifier: GPL-3.0-or-later -#![allow(stable_features)] // for coverage_attribute, remove after switching to newer nighly on prod -#![feature(coverage_attribute)] -#![coverage(off)] - mod snapshot_tests;