Skip to content

Commit 0ceecc2

Browse files
authored
Rollup merge of #126767 - compiler-errors:static-foreign-item, r=spastorino
`StaticForeignItem` and `StaticItem` are the same The struct `StaticItem` and `StaticForeignItem` are the same, so remove `StaticForeignItem`. Having them be separate is unique to `static` items -- unlike `ForeignItemKind::{Fn,TyAlias}`, which use the normal AST item. r? ``@spastorino`` or ``@oli-obk``
2 parents 254f18b + ad49fb5 commit 0ceecc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/ast_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,13 @@ pub fn eq_foreign_item_kind(l: &ForeignItemKind, r: &ForeignItemKind) -> bool {
449449
use ForeignItemKind::*;
450450
match (l, r) {
451451
(
452-
Static(box StaticForeignItem {
452+
Static(box StaticItem {
453453
ty: lt,
454454
mutability: lm,
455455
expr: le,
456456
safety: ls,
457457
}),
458-
Static(box StaticForeignItem {
458+
Static(box StaticItem {
459459
ty: rt,
460460
mutability: rm,
461461
expr: re,

0 commit comments

Comments
 (0)