diff options
author | Nadrieril | 2020-04-11 15:41:21 +0100 |
---|---|---|
committer | Nadrieril | 2020-06-25 15:12:09 +0100 |
commit | 72ad56209fe10e3120c19ca5b820ff267423ab1d (patch) | |
tree | 4728152ca9b5af25c293b3b16f921b5bcf32a1b8 /dhall/src/syntax/ast | |
parent | 4c80de149200a86f7fc13c725160dafb35d0ac08 (diff) |
spec: fix precedence of `===` and `with`
Diffstat (limited to 'dhall/src/syntax/ast')
-rw-r--r-- | dhall/src/syntax/ast/span.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dhall/src/syntax/ast/span.rs b/dhall/src/syntax/ast/span.rs index e250602..ab3279b 100644 --- a/dhall/src/syntax/ast/span.rs +++ b/dhall/src/syntax/ast/span.rs @@ -66,6 +66,12 @@ impl Span { end: max(x.end, y.end), }) } + (Parsed(_), Parsed(_)) => panic!( + "Tried to union incompatible spans: {:?} and {:?}", + self, other + ), + (Parsed(x), _) => Parsed(x.clone()), + (_, Parsed(x)) => Parsed(x.clone()), _ => panic!( "Tried to union incompatible spans: {:?} and {:?}", self, other |