Skip to content

Commit

Permalink
Rebase. Fix mutable iteration nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Turner committed Aug 17, 2016
1 parent 6186538 commit 54d42cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_errors/emitter.rs
Expand Up @@ -465,7 +465,7 @@ impl EmitterWriter {
span: &mut MultiSpan,
children: &mut Vec<SubDiagnostic>) {
let mut spans_updated = self.fix_multispan_in_std_macros(span);
for child in &mut children.iter_mut() {
for child in children.iter_mut() {
spans_updated |= self.fix_multispan_in_std_macros(&mut child.span);
}
if spans_updated {
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/mismatched_types/issue-26480.stderr
Expand Up @@ -4,7 +4,7 @@ error[E0308]: mismatched types
26 | $arr.len() * size_of($arr[0]));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
...
38 | write!(hello);
37 | write!(hello);
| -------------- in this macro invocation

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

error: aborting due to 2 previous errors
Expand Down

0 comments on commit 54d42cc

Please sign in to comment.