chore(ci): update tfhe-lints to more recent toolchain

This commit is contained in:
Arthur Meyre
2024-08-19 17:25:51 +02:00
parent e1a25a10ac
commit 296e419f6c
3 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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");