diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-21 16:01:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-21 16:01:31 +0200 |
| commit | 176e216c8e5807f766d393b8a726eae484edb780 (patch) | |
| tree | 99c7b3101822d297f9545bb26b82fb8e9fe1860e | |
| parent | 6da43dd10d8b175a2e71e05c8eb671ad6fec246d (diff) | |
| parent | c3140bae633b265657c0094f6df6edf630d1d917 (diff) | |
| download | rust-176e216c8e5807f766d393b8a726eae484edb780.tar.gz rust-176e216c8e5807f766d393b8a726eae484edb780.zip | |
Rollup merge of #64632 - guanqun:patch-1, r=jonas-schievink
remove the extra comma after the match arm This would follow the same coding style as all the other match arms in this file.
| -rw-r--r-- | src/librustc_resolve/late/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_resolve/late/diagnostics.rs b/src/librustc_resolve/late/diagnostics.rs index 0c86d8494fd..df8bd3fa75e 100644 --- a/src/librustc_resolve/late/diagnostics.rs +++ b/src/librustc_resolve/late/diagnostics.rs @@ -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() { |
