We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9157f5 + 9a16bbd commit f33db06Copy full SHA for f33db06
src/librustc_errors/emitter.rs
@@ -1287,7 +1287,7 @@ impl EmitterWriter {
1287
});
1288
1289
// length of the code to be substituted
1290
- let snippet_len = (span_end_pos - span_start_pos) as isize;
+ let snippet_len = span_end_pos as isize - span_start_pos as isize;
1291
// For multiple substitutions, use the position *after* the previous
1292
// substitutions have happened.
1293
offset += full_sub_len - snippet_len;
0 commit comments