Skip to content

Commit 54d42cc

Browse files
author
Jonathan Turner
committed
Rebase. Fix mutable iteration nit.
1 parent 6186538 commit 54d42cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_errors/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ impl EmitterWriter {
465465
span: &mut MultiSpan,
466466
children: &mut Vec<SubDiagnostic>) {
467467
let mut spans_updated = self.fix_multispan_in_std_macros(span);
468-
for child in &mut children.iter_mut() {
468+
for child in children.iter_mut() {
469469
spans_updated |= self.fix_multispan_in_std_macros(&mut child.span);
470470
}
471471
if spans_updated {

src/test/ui/mismatched_types/issue-26480.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0308]: mismatched types
44
26 | $arr.len() * size_of($arr[0]));
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
66
...
7-
38 | write!(hello);
7+
37 | write!(hello);
88
| -------------- in this macro invocation
99

1010
error: non-scalar cast: `{integer}` as `()`
@@ -13,7 +13,7 @@ error: non-scalar cast: `{integer}` as `()`
1313
32 | ($x:expr) => ($x as ())
1414
| ^^^^^^^^
1515
...
16-
39 | cast!(2);
16+
38 | cast!(2);
1717
| --------- in this macro invocation
1818

1919
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)