File tree 2 files changed +3
-3
lines changed
compiler/rustc_errors/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2019,7 +2019,7 @@ impl HumanEmitter {
2019
2019
let offset: isize = offsets
2020
2020
. iter ( )
2021
2021
. 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) } ,
2023
2023
)
2024
2024
. sum ( ) ;
2025
2025
let underline_start = ( span_start_pos + start) as isize + offset;
@@ -2028,7 +2028,7 @@ impl HumanEmitter {
2028
2028
let padding: usize = max_line_num_len + 3 ;
2029
2029
for p in underline_start..underline_end {
2030
2030
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
2032
2032
// underline with `+`.
2033
2033
buffer. putc (
2034
2034
row_num,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LL | foo(|_|)
9
9
help: you might have meant to open the body of the closure
10
10
|
11
11
LL | foo(|_| {})
12
- | ++
12
+ | ++
13
13
14
14
error[E0425]: cannot find function `foo` in this scope
15
15
--> $DIR/issue-32505.rs:2:5
You can’t perform that action at this time.
0 commit comments