fix: apply rustc-ap updates to backported commit

This commit is contained in:
Caleb Cartwright 2020-11-28 18:23:00 -06:00 committed by Caleb Cartwright
parent 5e7fb45533
commit ea712f1a2c

View file

@ -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(