Skip to content

Commit 143570b

Browse files
committed
fix
1 parent 26fd12c commit 143570b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/default_could_be_derived.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<'tcx> LateLintPass<'tcx> for DefaultCouldBeDerived {
129129

130130
// We have a manually written definition of a `<Type as Default>::default()`. We store the
131131
// necessary metadata for further analysis of its body in `check_body`.
132-
self.data = Some(Data { type_def_id: def.did(), parent: parent });
132+
self.data = Some(Data { type_def_id: def.did(), parent });
133133
}
134134

135135
fn check_impl_item_post(&mut self, _cx: &LateContext<'_>, _impl_item: &hir::ImplItem<'_>) {

0 commit comments

Comments
 (0)