Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 authored Sep 21, 2019
2 parents fefbcd5 + c3140ba commit 7a49412
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 7a49412

Please sign in to comment.