Skip to content

Commit

Permalink
Update compiler/rustc_error_messages/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
  • Loading branch information
IsakNyberg and VirrageS committed Apr 16, 2022
1 parent 53b2aca commit 657ae03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_error_messages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ impl MultiSpan {

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

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

0 comments on commit 657ae03

Please sign in to comment.