diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-11-28 18:23:00 -0600 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2020-11-29 13:26:58 -0600 |
| commit | ea712f1a2ca24b74fabe9a09b35caaaa46291695 (patch) | |
| tree | 539ddca0d492336d83966d38f8a39e12d6fe1deb /src | |
| parent | 5e7fb4553394e0d6439d0d2131dd9f65245d49a2 (diff) | |
| download | rust-ea712f1a2ca24b74fabe9a09b35caaaa46291695.tar.gz rust-ea712f1a2ca24b74fabe9a09b35caaaa46291695.zip | |
fix: apply rustc-ap updates to backported commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/items.rs b/src/items.rs index cd8364fd686..57156aece33 100644 --- a/src/items.rs +++ b/src/items.rs @@ -2932,7 +2932,7 @@ fn format_header( let after_vis = vis.span.hi(); if let Some(before_item_name) = context .snippet_provider - .opt_span_before(mk_sp(vis.span().lo(), ident.span.hi()), item_name.trim()) + .opt_span_before(mk_sp(vis.span.lo(), ident.span.hi()), item_name.trim()) { let missing_span = mk_sp(after_vis, before_item_name); if let Some(result_with_comment) = combine_strs_with_missing_comments( |
