Skip to content

Commit

Permalink
Improve build script performance (#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem authored May 20, 2024
1 parent 2c7dd14 commit ed815b1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
24 changes: 15 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ indexmap = "1.9.3"
indoc = "2"
insta = "1.29.0"
js-sys = "0.3"
lalrpop = "0.19.9"
lalrpop-util = "0.19.9"
lalrpop = "0.20.2"
lalrpop-util = "0.20.2"
lazy_static = "1"
log = "0.4"
logos = "0.12"
Expand Down Expand Up @@ -103,3 +103,9 @@ topiary-queries = { git = "https://github.com/tweag/topiary.git", rev = "82a94a9
# This should be kept in sync with the revision in topiary
tree-sitter-nickel = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "58baf89db8fdae54a84bcf22c80ff10ee3f929ed" }
tempfile = "3.5.0"

[profile.dev.package.lalrpop]
opt-level = 3

[profile.release.package.lalrpop]
opt-level = 3
2 changes: 1 addition & 1 deletion core/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ impl ParseError {
token: (start, _, end),
expected,
} => ParseError::UnexpectedToken(mk_span(file_id, start, end), expected),
lalrpop_util::ParseError::UnrecognizedEOF { expected, .. } => {
lalrpop_util::ParseError::UnrecognizedEof { expected, .. } => {
ParseError::UnexpectedEOF(file_id, expected)
}
lalrpop_util::ParseError::ExtraToken {
Expand Down

0 comments on commit ed815b1

Please sign in to comment.