summaryrefslogtreecommitdiff
path: root/src/diagnostic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagnostic.rs')
-rw-r--r--src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diagnostic.rs b/src/diagnostic.rs
index 2c649dac..834cd928 100644
--- a/src/diagnostic.rs
+++ b/src/diagnostic.rs
@@ -13,7 +13,7 @@ use crate::syntax::span::SpanVec;
pub type Diagnostics = SpanVec<Diagnostic>;
/// A diagnostic that arose in parsing or layouting.
-#[derive(Debug, Clone, Eq, PartialEq)]
+#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[cfg_attr(feature = "serialize", derive(Serialize))]
pub struct Diagnostic {
/// How severe / important the diagnostic is.