Skip to content

Commit

Permalink
Rollup merge of #64632 - guanqun:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
remove the extra comma after the match arm

This would follow the same coding style as all the other match arms in this file.
  • Loading branch information
Centril committed Sep 21, 2019
2 parents 6da43dd + c3140ba commit 176e216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/late/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ impl<'a> LateResolutionVisitor<'a, '_> {
} else {
err.note("did you mean to use one of the enum's variants?");
}
},
}
(Res::Def(DefKind::Struct, def_id), _) if ns == ValueNS => {
if let Some((ctor_def, ctor_vis))
= self.r.struct_constructors.get(&def_id).cloned() {
Expand Down

0 comments on commit 176e216

Please sign in to comment.