about summary refs log tree commit diff
path: root/compiler/rustc_resolve
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-20 19:50:57 -0400
committerMichael Goulet <michael@errs.io>2024-06-20 19:51:09 -0400
commit3e59f0c3c5b4e23057dcfbe9da784164e2410a78 (patch)
tree00b6aa373ee9971999544c96047f036ce135b7e7 /compiler/rustc_resolve
parentcb8a7ea0ed866295e0f65725cea6662bea51971a (diff)
downloadrust-3e59f0c3c5b4e23057dcfbe9da784164e2410a78.tar.gz
rust-3e59f0c3c5b4e23057dcfbe9da784164e2410a78.zip
StaticForeignItem and StaticItem are the same
Diffstat (limited to 'compiler/rustc_resolve')
-rw-r--r--compiler/rustc_resolve/src/def_collector.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_resolve/src/def_collector.rs b/compiler/rustc_resolve/src/def_collector.rs
index fb6e55f2b7b..ad1ec4438cc 100644
--- a/compiler/rustc_resolve/src/def_collector.rs
+++ b/compiler/rustc_resolve/src/def_collector.rs
@@ -217,12 +217,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'b, 'tcx> {
 
     fn visit_foreign_item(&mut self, fi: &'a ForeignItem) {
         let def_kind = match fi.kind {
-            ForeignItemKind::Static(box StaticForeignItem {
-                ty: _,
-                mutability,
-                expr: _,
-                safety,
-            }) => {
+            ForeignItemKind::Static(box StaticItem { ty: _, mutability, expr: _, safety }) => {
                 let safety = match safety {
                     ast::Safety::Unsafe(_) | ast::Safety::Default => hir::Safety::Unsafe,
                     ast::Safety::Safe(_) => hir::Safety::Safe,