We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53b2aca commit 657ae03Copy full SHA for 657ae03
compiler/rustc_error_messages/src/lib.rs
@@ -320,7 +320,7 @@ impl MultiSpan {
320
321
/// Returns `true` if any of the primary spans are displayable.
322
pub fn has_primary_spans(&self) -> bool {
323
- !self.primary_spans.iter().all(|sp| sp.is_dummy())
+ !self.is_dummy()
324
}
325
326
/// Returns `true` if this contains only a dummy primary span with any hygienic context.
0 commit comments