File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2019,7 +2019,7 @@ impl HumanEmitter {
20192019 let offset: isize = offsets
20202020 . iter ( )
20212021 . filter_map (
2022- |( start, v) | if span_start_pos <= * start { None } else { Some ( v) } ,
2022+ |( start, v) | if span_start_pos < * start { None } else { Some ( v) } ,
20232023 )
20242024 . sum ( ) ;
20252025 let underline_start = ( span_start_pos + start) as isize + offset;
@@ -2028,7 +2028,7 @@ impl HumanEmitter {
20282028 let padding: usize = max_line_num_len + 3 ;
20292029 for p in underline_start..underline_end {
20302030 if let DisplaySuggestion :: Underline = show_code_change {
2031- // If this is a replacement, underline with `^ `, if this is an addition
2031+ // If this is a replacement, underline with `~ `, if this is an addition
20322032 // underline with `+`.
20332033 buffer. putc (
20342034 row_num,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LL | foo(|_|)
99help: you might have meant to open the body of the closure
1010 |
1111LL | foo(|_| {})
12- | ++
12+ | ++
1313
1414error[E0425]: cannot find function `foo` in this scope
1515 --> $DIR/issue-32505.rs:2:5
You can’t perform that action at this time.
0 commit comments