From 677da3855e36e30d11538ca7ffa1deac393e577d Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Wed, 27 Aug 2025 15:29:17 +0200 Subject: [PATCH] chore(ci): update dylint --- utils/tfhe-lints/Cargo.toml | 2 +- utils/tfhe-lints/rust-toolchain | 2 +- utils/tfhe-lints/src/lib.rs | 1 - utils/tfhe-lints/src/serialize_without_versionize.rs | 5 ++--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/utils/tfhe-lints/Cargo.toml b/utils/tfhe-lints/Cargo.toml index 13d4f70a8..a2ea1d454 100644 --- a/utils/tfhe-lints/Cargo.toml +++ b/utils/tfhe-lints/Cargo.toml @@ -9,7 +9,7 @@ publish = false crate-type = ["cdylib"] [dependencies] -clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "238edf273d195c8e472851ebd60571f77f978ac8" } +clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "334fb906aef13d20050987b13448f37391bb97a2" } dylint_linting = "4.0.0" [dev-dependencies] diff --git a/utils/tfhe-lints/rust-toolchain b/utils/tfhe-lints/rust-toolchain index 33813026b..913b3a19a 100644 --- a/utils/tfhe-lints/rust-toolchain +++ b/utils/tfhe-lints/rust-toolchain @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2025-02-20" +channel = "nightly-2025-08-07" components = ["llvm-tools-preview", "rustc-dev"] profile = "default" diff --git a/utils/tfhe-lints/src/lib.rs b/utils/tfhe-lints/src/lib.rs index c07ebd3cc..f692ccf19 100644 --- a/utils/tfhe-lints/src/lib.rs +++ b/utils/tfhe-lints/src/lib.rs @@ -1,5 +1,4 @@ #![feature(rustc_private)] -#![feature(let_chains)] #![warn(unused_extern_crates)] extern crate rustc_ast; diff --git a/utils/tfhe-lints/src/serialize_without_versionize.rs b/utils/tfhe-lints/src/serialize_without_versionize.rs index 423efee8e..d2600fda6 100644 --- a/utils/tfhe-lints/src/serialize_without_versionize.rs +++ b/utils/tfhe-lints/src/serialize_without_versionize.rs @@ -3,7 +3,6 @@ use std::sync::{Arc, OnceLock}; use rustc_hir::def_id::DefId; use rustc_hir::{Impl, Item, ItemKind}; use rustc_lint::{LateContext, LateLintPass, LintContext}; -use rustc_span::sym; use crate::utils::{get_def_id_from_ty, is_allowed_lint, symbols_list_from_str}; @@ -22,7 +21,7 @@ impl SerializeWithoutVersionizeInner { pub fn versionize_trait(&self, cx: &LateContext<'_>) -> Option { self.versionize_trait .get_or_init(|| { - let versionize_trait = cx.tcx.all_traits().find(|def_id| { + let versionize_trait = cx.tcx.all_traits_including_private().find(|def_id| { let path = cx.get_def_path(*def_id); path == symbols_list_from_str(&VERSIONIZE_TRAIT) }); @@ -75,7 +74,7 @@ impl<'tcx> LateLintPass<'tcx> for SerializeWithoutVersionize { if let Some(type_def_id) = get_def_id_from_ty(ty) { // If the type has been automatically generated, skip it - if cx.tcx.has_attr(type_def_id, sym::automatically_derived) { + if cx.tcx.is_automatically_derived(type_def_id) { return; }