Skip to content

Commit

Permalink
Rollup merge of #100107 - klensy:tr-w, r=compiler-errors
Browse files Browse the repository at this point in the history
fix trailing whitespace in error message
  • Loading branch information
matthiaskrgr authored Aug 3, 2022
2 parents 9c04ffb + 0548e8e commit 5512240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2736,7 +2736,7 @@ impl<'b, 'v> Visitor<'v> for ConditionVisitor<'b> {
self.errors.push((
e.span,
format!(
"if the `for` loop runs 0 times, {} is not initialized ",
"if the `for` loop runs 0 times, {} is not initialized",
self.name
),
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0381]: used binding `x` is possibly-uninitialized
LL | let mut x: isize;
| ----- binding declared here but left uninitialized
LL | for _ in 0..0 { x = 10; }
| ---- if the `for` loop runs 0 times, `x` is not initialized
| ---- if the `for` loop runs 0 times, `x` is not initialized
LL | return x;
| ^ `x` used here but it is possibly-uninitialized

Expand Down

0 comments on commit 5512240

Please sign in to comment.