From 79aba47f574746f57f645125772dbbe7be4489f4 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" <69792125+mayeul-zama@users.noreply.github.com> Date: Fri, 4 Oct 2024 09:28:18 +0200 Subject: [PATCH] chore(hlapi): remove useless flags --- tfhe/src/high_level_api/integers/signed/base.rs | 1 - tfhe/src/high_level_api/integers/signed/static_.rs | 3 --- tfhe/src/high_level_api/integers/unsigned/base.rs | 1 - tfhe/src/high_level_api/integers/unsigned/static_.rs | 3 --- 4 files changed, 8 deletions(-) diff --git a/tfhe/src/high_level_api/integers/signed/base.rs b/tfhe/src/high_level_api/integers/signed/base.rs index cc2e4987b9..e0c6c9351a 100644 --- a/tfhe/src/high_level_api/integers/signed/base.rs +++ b/tfhe/src/high_level_api/integers/signed/base.rs @@ -33,7 +33,6 @@ pub trait FheIntId: IntegerId {} /// /// [FheInt8]: crate::high_level_api::FheUint8 /// [FheInt16]: crate::high_level_api::FheInt16 -#[cfg_attr(all(doc, not(doctest)), doc(cfg(feature = "integer")))] #[derive(Clone, serde::Deserialize, serde::Serialize, Versionize)] #[versionize(FheIntVersions)] pub struct FheInt { diff --git a/tfhe/src/high_level_api/integers/signed/static_.rs b/tfhe/src/high_level_api/integers/signed/static_.rs index df2fc18064..e6575d7357 100644 --- a/tfhe/src/high_level_api/integers/signed/static_.rs +++ b/tfhe/src/high_level_api/integers/signed/static_.rs @@ -36,15 +36,12 @@ macro_rules! static_int_type { #[doc = ""] #[doc = "See [FheInt]"] $(#[$outer])* - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = FheInt<[]>; #[doc = concat!("A compressed signed integer type with ", stringify!($num_bits), " bits")] - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = CompressedFheInt<[]>; // Conformance Params - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = FheIntConformanceParams<[]>; } }; diff --git a/tfhe/src/high_level_api/integers/unsigned/base.rs b/tfhe/src/high_level_api/integers/unsigned/base.rs index a0dda24f4f..cb04dc3968 100644 --- a/tfhe/src/high_level_api/integers/unsigned/base.rs +++ b/tfhe/src/high_level_api/integers/unsigned/base.rs @@ -73,7 +73,6 @@ pub trait FheUintId: IntegerId {} /// [FheUint8]: crate::high_level_api::FheUint8 /// [FheUint12]: crate::high_level_api::FheUint12 /// [FheUint16]: crate::high_level_api::FheUint16 -#[cfg_attr(all(doc, not(doctest)), doc(cfg(feature = "integer")))] #[derive(Clone, serde::Deserialize, serde::Serialize, Versionize)] #[versionize(FheUintVersions)] pub struct FheUint { diff --git a/tfhe/src/high_level_api/integers/unsigned/static_.rs b/tfhe/src/high_level_api/integers/unsigned/static_.rs index 178019bb3e..0d78281da8 100644 --- a/tfhe/src/high_level_api/integers/unsigned/static_.rs +++ b/tfhe/src/high_level_api/integers/unsigned/static_.rs @@ -38,14 +38,11 @@ macro_rules! static_int_type { #[doc = ""] #[doc = "See [FheUint]"] $(#[$outer])* - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = FheUint<[]>; - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = CompressedFheUint<[]>; // Conformance Params - #[cfg_attr(all(doc, not(doctest)), cfg(feature = "integer"))] pub type [] = FheUintConformanceParams<[]>; } };