about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-07-29 10:16:25 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-08-16 12:13:23 +1000
commit3e04fed6fad401705c41f6f4ab24637d7c32c679 (patch)
treee1cc667bb4e1165f95e3052299534c3892c04282 /compiler/rustc_builtin_macros/src
parent40336865fe7d4a01139a3336639c6971647e885c (diff)
downloadrust-3e04fed6fad401705c41f6f4ab24637d7c32c679.tar.gz
rust-3e04fed6fad401705c41f6f4ab24637d7c32c679.zip
Remove `{ast,hir}::WhereEqPredicate::id`.
These fields are unused.
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/generic/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
index ef64f52d40b..9f3a80ea7cb 100644
--- a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -640,11 +640,7 @@ impl<'a> TraitDef<'a> {
                 }
                 ast::WherePredicate::EqPredicate(we) => {
                     let span = we.span.with_ctxt(ctxt);
-                    ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {
-                        id: ast::DUMMY_NODE_ID,
-                        span,
-                        ..we.clone()
-                    })
+                    ast::WherePredicate::EqPredicate(ast::WhereEqPredicate { span, ..we.clone() })
                 }
             }
         }));