Skip to content

Commit 3df5098

Browse files
committed
fix code style
1 parent e2c12b4 commit 3df5098

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

compiler/rustc_hir_typeck/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,15 +1675,15 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
16751675
let mut error_happened = if variant.fields.len() > remaining_fields.len() {
16761676
// Some field is defined more than once. Make sure we don't try to
16771677
// instantiate this struct in static/const context.
1678-
let guar = self.dcx().span_delayed_bug(expr.span, "struct fields have non-unique names");
1678+
let guar =
1679+
self.dcx().span_delayed_bug(expr.span, "struct fields have non-unique names");
16791680
self.set_tainted_by_errors(guar);
16801681

16811682
true
16821683
} else {
16831684
false
16841685
};
16851686

1686-
16871687
// Type-check each field.
16881688
for (idx, field) in hir_fields.iter().enumerate() {
16891689
let ident = tcx.adjust_ident(field.ident, variant.def_id);

0 commit comments

Comments
 (0)