mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
Do not include body's attributes in arrow_span
This commit is contained in:
parent
0d4fb2403c
commit
3d80678e24
@ -263,7 +263,7 @@ fn rewrite_match_arm(
|
||||
false,
|
||||
)?;
|
||||
|
||||
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span.lo());
|
||||
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span().lo());
|
||||
rewrite_match_body(
|
||||
context,
|
||||
&arm.body,
|
||||
|
Loading…
Reference in New Issue
Block a user