Skip to content

Commit 657ae03

Browse files
IsakNybergVirrageS
andauthored
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

+1-1
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)