]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/lib.rs
Rollup merge of #105768 - fee1-dead-contrib:iat-style, r=eholk
[rust.git] / compiler / rustc_errors / src / lib.rs
index eb0506c459afa732b0bf07918bf8adfde11659af..518b5ec10f8906122c4ab9fb26cc19e80231bf8a 100644 (file)
@@ -324,7 +324,7 @@ fn push_trailing(
                         // Account for the difference between the width of the current code and the
                         // snippet being suggested, so that the *later* suggestions are correctly
                         // aligned on the screen.
-                        acc += len as isize - (cur_hi.col.0 - cur_lo.col.0) as isize;
+                        acc += len - (cur_hi.col.0 - cur_lo.col.0) as isize;
                     }
                     prev_hi = cur_hi;
                     prev_line = sf.get_line(prev_hi.line - 1);