mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
chore(ci): update tfhe-lints to more recent toolchain
This commit is contained in:
@@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
rustc-tools = "0.78"
|
||||
rustc-tools = "0.80"
|
||||
|
||||
[package.metadata.rust-analyzer]
|
||||
rustc_private=true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-05-02"
|
||||
channel = "nightly-2024-07-25"
|
||||
components = ["rustc-dev", "rust-src", "llvm-tools-preview"]
|
||||
profile = "minimal"
|
||||
|
||||
@@ -101,9 +101,8 @@ impl<'tcx> LateLintPass<'tcx> for SerializeWithoutVersionize {
|
||||
cx.span_lint(
|
||||
SERIALIZE_WITHOUT_VERSIONIZE,
|
||||
cx.tcx.def_span(type_def_id),
|
||||
format!(
|
||||
"Type {ty} implements `Serialize` but does not implement `Versionize`"
|
||||
),|diag| {
|
||||
|diag| {
|
||||
diag.primary_message("Type {ty} implements `Serialize` but does not implement `Versionize`");
|
||||
diag.note("Add `#[derive(Versionize)] for this type or silence this warning using \
|
||||
`#[cfg_attr(tfhe_lints, allow(tfhe_lints::serialize_without_versionize))]``");
|
||||
diag.span_note(item.span, "`Serialize` derived here");
|
||||
|
||||
Reference in New Issue
Block a user