Skip to content

Commit eb83509

Browse files
committed
review comment
1 parent ad13d9f commit eb83509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/late/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
14621462
.map(|span| {
14631463
(
14641464
*span,
1465-
if span.lo() == span.hi() { "pub " } else { "pub" }
1465+
if span.is_empty() { "pub " } else { "pub" }
14661466
.to_string(),
14671467
)
14681468
})

0 commit comments

Comments
 (0)