Skip to content

Commit 1dddeab

Browse files
authoredDec 15, 2024··
Rustup (#13832)
r? @ghost changelog: none
2 parents 6240710 + 028d87b commit 1dddeab

File tree

113 files changed

+400
-572
lines changed

Some content is hidden

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

113 files changed

+400
-572
lines changed
 

‎clippy_lints/src/attrs/should_panic_without_expect.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ use rustc_span::sym;
99

1010
pub(super) fn check(cx: &EarlyContext<'_>, attr: &Attribute) {
1111
if let AttrKind::Normal(normal_attr) = &attr.kind {
12-
if let AttrArgs::Eq(_, AttrArgsEq::Ast(_)) = &normal_attr.item.args {
12+
if let AttrArgs::Eq {
13+
value: AttrArgsEq::Ast(_),
14+
..
15+
} = &normal_attr.item.args
16+
{
1317
// `#[should_panic = ".."]` found, good
1418
return;
1519
}

‎clippy_lints/src/declared_lints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ pub static LINTS: &[&crate::LintInfo] = &[
747747
crate::unit_types::LET_UNIT_VALUE_INFO,
748748
crate::unit_types::UNIT_ARG_INFO,
749749
crate::unit_types::UNIT_CMP_INFO,
750-
crate::unnamed_address::FN_ADDRESS_COMPARISONS_INFO,
751750
crate::unnecessary_box_returns::UNNECESSARY_BOX_RETURNS_INFO,
752751
crate::unnecessary_literal_bound::UNNECESSARY_LITERAL_BOUND_INFO,
753752
crate::unnecessary_map_on_constructor::UNNECESSARY_MAP_ON_CONSTRUCTOR_INFO,

0 commit comments

Comments
 (0)