Skip to content

Commit 677da38

Browse files
committed
chore(ci): update dylint
1 parent c52e2e3 commit 677da38

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

utils/tfhe-lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "238edf273d195c8e472851ebd60571f77f978ac8" }
12+
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "334fb906aef13d20050987b13448f37391bb97a2" }
1313
dylint_linting = "4.0.0"
1414

1515
[dev-dependencies]

utils/tfhe-lints/rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2025-02-20"
2+
channel = "nightly-2025-08-07"
33
components = ["llvm-tools-preview", "rustc-dev"]
44
profile = "default"

utils/tfhe-lints/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(rustc_private)]
2-
#![feature(let_chains)]
32
#![warn(unused_extern_crates)]
43

54
extern crate rustc_ast;

utils/tfhe-lints/src/serialize_without_versionize.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::sync::{Arc, OnceLock};
33
use rustc_hir::def_id::DefId;
44
use rustc_hir::{Impl, Item, ItemKind};
55
use rustc_lint::{LateContext, LateLintPass, LintContext};
6-
use rustc_span::sym;
76

87
use crate::utils::{get_def_id_from_ty, is_allowed_lint, symbols_list_from_str};
98

@@ -22,7 +21,7 @@ impl SerializeWithoutVersionizeInner {
2221
pub fn versionize_trait(&self, cx: &LateContext<'_>) -> Option<DefId> {
2322
self.versionize_trait
2423
.get_or_init(|| {
25-
let versionize_trait = cx.tcx.all_traits().find(|def_id| {
24+
let versionize_trait = cx.tcx.all_traits_including_private().find(|def_id| {
2625
let path = cx.get_def_path(*def_id);
2726
path == symbols_list_from_str(&VERSIONIZE_TRAIT)
2827
});
@@ -75,7 +74,7 @@ impl<'tcx> LateLintPass<'tcx> for SerializeWithoutVersionize {
7574

7675
if let Some(type_def_id) = get_def_id_from_ty(ty) {
7776
// If the type has been automatically generated, skip it
78-
if cx.tcx.has_attr(type_def_id, sym::automatically_derived) {
77+
if cx.tcx.is_automatically_derived(type_def_id) {
7978
return;
8079
}
8180

0 commit comments

Comments
 (0)