]> Repositorios git - scryer-prolog.git/commitdiff
make match exhaustive
authorSkgland <[email protected]>
Sat, 24 Jan 2026 01:22:44 +0000 (02:22 +0100)
committerBennet Bleßmann <[email protected]>
Sat, 24 Jan 2026 03:08:40 +0000 (04:08 +0100)
src/parser/ast.rs

index 0d789c33dae1b3115bf142c83978ef3afce24983..fe28207bca759134e3663feebf992ba11006d9bd 100644 (file)
@@ -473,7 +473,9 @@ impl ParserError {
             | ParserError::ParseBigInt(location)
             | ParserError::UnexpectedChar(_, location) => Some(location.clone()),
             ParserError::Utf8Error(location) => location.as_ref().cloned(),
-            _ => None,
+            ParserError::IO(_)
+            | ParserError::LexicalError(_)
+            | ParserError::InvalidSingleQuotedCharacter(_) => None,
         }
     }