mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Update compiler/rustc_error_messages/src/lib.rs
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
This commit is contained in:
parent
53b2aca9da
commit
657ae03f60
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user