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.
1 parent 61bc38e commit 515262cCopy full SHA for 515262c
src/librustc_errors/emitter.rs
@@ -1501,7 +1501,7 @@ impl EmitterWriter {
1501
.saturating_sub(part.snippet.trim_start().len());
1502
// ...or trailing spaces. Account for substitutions containing unicode
1503
// characters.
1504
- let sub_len = part.snippet.trim().chars()
+ let sub_len: usize = part.snippet.trim().chars()
1505
.map(|ch| unicode_width::UnicodeWidthChar::width(ch).unwrap_or(1))
1506
.sum();
1507
0 commit comments