Skip to content

Commit 334fb90

Browse files
authored
Rustup (#15431)
r? @ghost changelog: none
2 parents faba846 + d5f9f75 commit 334fb90

File tree

81 files changed

+160
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+160
-140
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.1.90"
3+
version = "0.1.91"
44
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"

clippy_config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy_config"
3-
version = "0.1.90"
3+
version = "0.1.91"
44
edition = "2024"
55
publish = false
66

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy_lints"
3-
version = "0.1.90"
3+
version = "0.1.91"
44
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"

clippy_lints/src/approx_const.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use clippy_config::Conf;
22
use clippy_utils::diagnostics::span_lint_and_help;
33
use clippy_utils::msrvs::{self, Msrv};
44
use rustc_ast::ast::{FloatTy, LitFloatType, LitKind};
5-
use rustc_attr_data_structures::RustcVersion;
6-
use rustc_hir::{HirId, Lit};
5+
use rustc_hir::{HirId, Lit, RustcVersion};
76
use rustc_lint::{LateContext, LateLintPass};
87
use rustc_session::impl_lint_pass;
98
use rustc_span::{Span, symbol};

clippy_lints/src/arbitrary_source_item_ordering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use clippy_config::types::{
66
};
77
use clippy_utils::diagnostics::span_lint_and_note;
88
use clippy_utils::is_cfg_test;
9-
use rustc_attr_data_structures::AttributeKind;
9+
use rustc_hir::attrs::AttributeKind;
1010
use rustc_hir::{
1111
Attribute, FieldDef, HirId, ImplItemId, IsAuto, Item, ItemKind, Mod, OwnerId, QPath, TraitItemId, TyKind, Variant,
1212
VariantData,

clippy_lints/src/assigning_clones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<'tcx> LateLintPass<'tcx> for AssigningClones {
9898
// That is overly conservative - the lint should fire even if there was no initializer,
9999
// but the variable has been initialized before `lhs` was evaluated.
100100
&& path_to_local(lhs).is_none_or(|lhs| local_is_initialized(cx, lhs))
101-
&& let Some(resolved_impl) = cx.tcx.impl_of_method(resolved_fn.def_id())
101+
&& let Some(resolved_impl) = cx.tcx.impl_of_assoc(resolved_fn.def_id())
102102
// Derived forms don't implement `clone_from`/`clone_into`.
103103
// See https://github.com/rust-lang/rust/pull/98445#issuecomment-1190681305
104104
&& !cx.tcx.is_builtin_derived(resolved_impl)

clippy_lints/src/attrs/inline_always.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::INLINE_ALWAYS;
22
use clippy_utils::diagnostics::span_lint;
3-
use rustc_attr_data_structures::{AttributeKind, InlineAttr, find_attr};
4-
use rustc_hir::Attribute;
3+
use rustc_hir::attrs::{AttributeKind, InlineAttr};
4+
use rustc_hir::{Attribute, find_attr};
55
use rustc_lint::LateContext;
66
use rustc_span::Span;
77
use rustc_span::symbol::Symbol;

clippy_lints/src/attrs/repr_attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use rustc_attr_data_structures::{AttributeKind, ReprAttr, find_attr};
2-
use rustc_hir::Attribute;
1+
use rustc_hir::attrs::{AttributeKind, ReprAttr};
2+
use rustc_hir::{Attribute, find_attr};
33
use rustc_lint::LateContext;
44
use rustc_span::Span;
55

clippy_lints/src/booleans.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ use clippy_utils::sugg::Sugg;
77
use clippy_utils::ty::{implements_trait, is_type_diagnostic_item};
88
use clippy_utils::{eq_expr_value, sym};
99
use rustc_ast::ast::LitKind;
10-
use rustc_attr_data_structures::RustcVersion;
1110
use rustc_errors::Applicability;
1211
use rustc_hir::intravisit::{FnKind, Visitor, walk_expr};
13-
use rustc_hir::{BinOpKind, Body, Expr, ExprKind, FnDecl, UnOp};
12+
use rustc_hir::{BinOpKind, Body, Expr, ExprKind, FnDecl, RustcVersion, UnOp};
1413
use rustc_lint::{LateContext, LateLintPass, Level};
1514
use rustc_session::impl_lint_pass;
1615
use rustc_span::def_id::LocalDefId;

clippy_lints/src/casts/cast_ptr_alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn is_used_as_unaligned(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
6363
ExprKind::MethodCall(name, self_arg, ..) if self_arg.hir_id == e.hir_id => {
6464
if matches!(name.ident.name, sym::read_unaligned | sym::write_unaligned)
6565
&& let Some(def_id) = cx.typeck_results().type_dependent_def_id(parent.hir_id)
66-
&& let Some(def_id) = cx.tcx.impl_of_method(def_id)
66+
&& let Some(def_id) = cx.tcx.impl_of_assoc(def_id)
6767
&& cx.tcx.type_of(def_id).instantiate_identity().is_raw_ptr()
6868
{
6969
true

0 commit comments

Comments
 (0)