Skip to content

Commit b72b1ac

Browse files
fix indentation
1 parent 70e52f8 commit b72b1ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_typeck/check/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12211221
err.span_label(variant.ident.span, format!("`{adt}` defined here", adt=ty));
12221222
err.span_label(field.ident.span, "field does not exist");
12231223
err.span_label(ty_span, format!(
1224-
"`{adt}` is a tuple {kind_name},\
1224+
"`{adt}` is a tuple {kind_name}, \
12251225
use the appropriate syntax: `{adt}(/* fields */)`",
12261226
adt=ty,
12271227
kind_name=kind_name
@@ -1267,7 +1267,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12671267
};
12681268
}
12691269
}
1270-
err.emit();
1270+
err.emit();
12711271
}
12721272

12731273
// Return an hint about the closest match in field names

src/test/ui/issues/issue-4736.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | struct NonCopyable(());
77
LL | let z = NonCopyable{ p: () };
88
| ----------- ^ field does not exist
99
| |
10-
| `NonCopyable` is a tuple struct,use the appropriate syntax: `NonCopyable(/* fields */)`
10+
| `NonCopyable` is a tuple struct, use the appropriate syntax: `NonCopyable(/* fields */)`
1111

1212
error: aborting due to previous error
1313

src/test/ui/numeric/numeric-fields.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | struct S(u8, u16);
77
LL | let s = S{0b1: 10, 0: 11};
88
| - ^^^ field does not exist
99
| |
10-
| `S` is a tuple struct,use the appropriate syntax: `S(/* fields */)`
10+
| `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
1111

1212
error[E0026]: struct `S` does not have a field named `0x1`
1313
--> $DIR/numeric-fields.rs:7:17

0 commit comments

Comments
 (0)