diff --git a/parser/Cargo.toml b/parser/Cargo.toml index 1ed0a8a3ed..cc9608accd 100644 --- a/parser/Cargo.toml +++ b/parser/Cargo.toml @@ -14,7 +14,7 @@ serde = ["dep:serde", "rustpython-compiler-core/serde"] [build-dependencies] anyhow = { workspace = true } -lalrpop = { version = "0.19.9", optional = true } +lalrpop = { version = "0.20.0", default-features = false, optional = true } phf_codegen = "0.11.1" tiny-keccak = { version = "2", features = ["sha3"] } @@ -31,7 +31,7 @@ unicode_names2 = { workspace = true } unic-emoji-char = "0.9.0" unic-ucd-ident = "0.9.0" -lalrpop-util = "0.19.8" +lalrpop-util = { version = "0.20.0", default-features = false } phf = "0.11.1" rustc-hash = "1.1.0" serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] } diff --git a/parser/src/parser.rs b/parser/src/parser.rs index b9c0bc0ade..74173a2a76 100644 --- a/parser/src/parser.rs +++ b/parser/src/parser.rs @@ -250,7 +250,7 @@ fn parse_error_from_lalrpop( source_path, } } - LalrpopError::UnrecognizedEOF { location, expected } => { + LalrpopError::UnrecognizedEof { location, expected } => { // This could be an initial indentation error that we should ignore let indent_error = expected == ["Indent"]; if indent_error {