Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 657ae03

Browse files
IsakNybergVirrageS
andauthoredApr 16, 2022
Update compiler/rustc_error_messages/src/lib.rs
Co-authored-by: Janusz Marcinkiewicz <[email protected]>
1 parent 53b2aca commit 657ae03

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_error_messages/src

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_error_messages/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl MultiSpan {
320320

321321
/// Returns `true` if any of the primary spans are displayable.
322322
pub fn has_primary_spans(&self) -> bool {
323-
!self.primary_spans.iter().all(|sp| sp.is_dummy())
323+
!self.is_dummy()
324324
}
325325

326326
/// Returns `true` if this contains only a dummy primary span with any hygienic context.

0 commit comments

Comments
 (0)
Please sign in to comment.