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" edition = "2021"
[dependencies] [dependencies]
rustc-tools = "0.78" rustc-tools = "0.80"
[package.metadata.rust-analyzer] [package.metadata.rust-analyzer]
rustc_private=true rustc_private=true

View File

@@ -1,4 +1,4 @@
[toolchain] [toolchain]
channel = "nightly-2024-05-02" channel = "nightly-2024-07-25"
components = ["rustc-dev", "rust-src", "llvm-tools-preview"] components = ["rustc-dev", "rust-src", "llvm-tools-preview"]
profile = "minimal" profile = "minimal"

View File

@@ -101,9 +101,8 @@ impl<'tcx> LateLintPass<'tcx> for SerializeWithoutVersionize {
cx.span_lint( cx.span_lint(
SERIALIZE_WITHOUT_VERSIONIZE, SERIALIZE_WITHOUT_VERSIONIZE,
cx.tcx.def_span(type_def_id), cx.tcx.def_span(type_def_id),
format!( |diag| {
"Type {ty} implements `Serialize` but does not implement `Versionize`" diag.primary_message("Type {ty} implements `Serialize` but does not implement `Versionize`");
),|diag| {
diag.note("Add `#[derive(Versionize)] for this type or silence this warning using \ diag.note("Add `#[derive(Versionize)] for this type or silence this warning using \
`#[cfg_attr(tfhe_lints, allow(tfhe_lints::serialize_without_versionize))]``"); `#[cfg_attr(tfhe_lints, allow(tfhe_lints::serialize_without_versionize))]``");
diag.span_note(item.span, "`Serialize` derived here"); diag.span_note(item.span, "`Serialize` derived here");