chore(ci): update nightly toolchain to have fixed LLVM as well

- fix lints linked to latest nightly
This commit is contained in:
Arthur Meyre
2023-11-30 09:47:06 +01:00
parent 9dac9242be
commit bb1a969c34
11 changed files with 20 additions and 21 deletions

View File

@@ -22,6 +22,9 @@ pub trait Seeder {
}
mod implem;
// This import statement can be empty if seeder features are disabled, rustc's behavior changed to
// warn of empty modules, we know this can happen, so allow it.
#[allow(unused_imports)]
pub use implem::*;
#[cfg(test)]

View File

@@ -393,7 +393,7 @@ fn _bench_wopbs_param_message_8_norm2_5(c: &mut Criterion) {
let mut bench_group = c.benchmark_group("programmable_bootstrap");
let param = WOPBS_PARAM_MESSAGE_4_NORM2_6_KS_PBS;
let param_set: ShortintParameterSet = param.try_into().unwrap();
let param_set: ShortintParameterSet = param.into();
let pbs_params = param_set.pbs_parameters().unwrap();
let keys = KEY_CACHE_WOPBS.get_from_param((pbs_params, param));

View File

@@ -19,7 +19,7 @@ pub fn has_match(
let res = if branches.len() <= 1 {
branches
.get(0)
.first()
.map_or(exec.ct_false(), |branch| branch(&mut exec))
.0
} else {

View File

@@ -1,7 +1,7 @@
use dyn_stack::{GlobalPodBuffer, PodStack, ReborrowMut};
use super::super::super::{fft128, fft128_u128};
use super::super::math::fft::{Fft128, Fft128View};
use super::super::math::fft::Fft128View;
use crate::core_crypto::fft_impl::common::tests::{
gen_keys_or_get_from_cache_if_enabled, generate_keys,
};

View File

@@ -1,5 +1,5 @@
use crate::core_crypto::commons::utils::izip;
pub use crate::core_crypto::fft_impl::fft128::math::fft::{Fft128, Fft128View};
pub use crate::core_crypto::fft_impl::fft128::math::fft::Fft128View;
use concrete_fft::fft128::f128;
use dyn_stack::PodStack;

View File

@@ -1,4 +1,4 @@
pub use crate::core_crypto::commons::math::random::Seed;
use crate::core_crypto::commons::math::random::Seed;
use wasm_bindgen::prelude::*;
use crate::core_crypto::commons::generators::DeterministicSeeder;
@@ -195,7 +195,7 @@ impl Boolean {
}
#[wasm_bindgen]
pub fn trivial_encrypt(&mut self, message: bool) -> BooleanCiphertext {
pub fn trivial_encrypt(message: bool) -> BooleanCiphertext {
set_hook(Box::new(console_error_panic_hook::hook));
BooleanCiphertext(crate::boolean::ciphertext::Ciphertext::Trivial(message))
}

View File

@@ -1,15 +1,13 @@
#[cfg(feature = "shortint-client-js-wasm-api")]
mod shortint;
#[cfg(feature = "shortint-client-js-wasm-api")]
pub use shortint::*;
#[cfg(feature = "boolean-client-js-wasm-api")]
mod boolean;
#[cfg(feature = "boolean-client-js-wasm-api")]
pub use boolean::*;
// We need to use the init_thread_pool for it to be publicly visible but it appears unused when
// compiling
#[allow(unused_imports)]
#[cfg(feature = "parallel-wasm-api")]
pub use wasm_bindgen_rayon::init_thread_pool;
mod js_high_level_api;
pub use js_high_level_api::*;

View File

@@ -1,8 +1,8 @@
use crate::core_crypto::commons::generators::DeterministicSeeder;
pub use crate::core_crypto::commons::math::random::Seed;
use crate::core_crypto::commons::math::random::Seed;
use crate::core_crypto::prelude::ActivatedRandomGenerator;
pub use crate::shortint::parameters::parameters_compact_pk::*;
pub use crate::shortint::parameters::*;
use crate::shortint::parameters::parameters_compact_pk::*;
use crate::shortint::parameters::*;
use wasm_bindgen::prelude::*;
use std::panic::set_hook;
@@ -349,7 +349,7 @@ impl Shortint {
let mut seeder = DeterministicSeeder::<ActivatedRandomGenerator>::new(Seed(seed));
ShortintClientKey(
crate::shortint::engine::ShortintEngine::new_from_seeder(&mut seeder)
.new_client_key(parameters.0.try_into().unwrap()),
.new_client_key(parameters.0.into()),
)
}

View File

@@ -95,8 +95,6 @@ pub mod shortint;
#[cfg(feature = "__wasm_api")]
/// cbindgen:ignore
mod js_on_wasm_api;
#[cfg(feature = "__wasm_api")]
pub use js_on_wasm_api::*;
#[cfg(all(
doctest,
@@ -106,15 +104,15 @@ pub use js_on_wasm_api::*;
))]
mod test_user_docs;
/// cbindgen:ignore
#[cfg(feature = "integer")]
/// cbindgen:ignore
pub(crate) mod high_level_api;
#[cfg(feature = "integer")]
pub use high_level_api::*;
/// cbindgen:ignore
#[cfg(any(test, doctest, feature = "internal-keycache"))]
/// cbindgen:ignore
pub mod keycache;
#[cfg(feature = "safe-deserialization")]

View File

@@ -1,4 +1,4 @@
pub use crate::core_crypto::commons::dispersion::{DispersionParameter, StandardDev};
pub use crate::core_crypto::commons::dispersion::StandardDev;
pub use crate::core_crypto::commons::parameters::{
DecompositionBaseLog, DecompositionLevelCount, GlweDimension, LweDimension, PolynomialSize,
};

View File

@@ -1 +1 @@
nightly-2023-10-17
nightly-2023-11-30