mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Fix spans for comments in rustfmt
This commit is contained in:
parent
b8e3cb0377
commit
8ac561afef
@ -2599,7 +2599,8 @@ fn rewrite_fn_base(
|
||||
if where_clause_str.is_empty() {
|
||||
if let ast::FnRetTy::Default(ret_span) = fd.output {
|
||||
match recover_missing_comment_in_span(
|
||||
mk_sp(params_span.hi(), ret_span.hi()),
|
||||
// from after the closing paren to right before block or semicolon
|
||||
mk_sp(ret_span.lo(), span.hi()),
|
||||
shape,
|
||||
context,
|
||||
last_line_width(&result),
|
||||
|
Loading…
Reference in New Issue
Block a user