From ea712f1a2ca24b74fabe9a09b35caaaa46291695 Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Sat, 28 Nov 2020 18:23:00 -0600 Subject: [PATCH] fix: apply rustc-ap updates to backported commit --- src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index cd8364fd6865..57156aece33d 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(