Skip to content

Commit

Permalink
update miette to v7.2.0 (#1889)
Browse files Browse the repository at this point in the history
Closes #1887

Thanks @billti for finding the new `fancy-no-syscall` feature
[introduced to `miette` in
February](zkat/miette#349). As a result of that
change, we can now update to the latest version of `miette` without
breaking our WASM builds. Yay!
  • Loading branch information
sezna authored Aug 27, 2024
1 parent 3f35b8e commit b3f137a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 96 deletions.
100 changes: 9 additions & 91 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ indoc = "2.0"
js-sys = "0.3"
libfuzzer-sys = "0.4"
log = "0.4"
miette = "5"
miette = { version = "7.2", features = ["fancy-no-syscall"] }
thiserror = "1.0"
nalgebra = { version = "0.33" }
num-bigint = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion compiler/qsc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license.workspace = true
clap = { workspace = true, features = ["derive", "cargo"] }
env_logger = { workspace = true }
log = { workspace = true }
miette = { workspace = true, features = ["fancy"] }
miette = { workspace = true, features = ["fancy-no-syscall"] }
num-bigint = { workspace = true }
num-complex = { workspace = true }
qsc_codegen = { path = "../qsc_codegen" }
Expand Down
2 changes: 1 addition & 1 deletion compiler/qsc_frontend/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ impl<E: Diagnostic + Sync + Send> SourceCode for WithSource<E> {
}

fn with_offset(span: &SourceSpan, f: impl FnOnce(usize) -> usize) -> SourceSpan {
SourceSpan::new(f(span.offset()).into(), span.len().into())
SourceSpan::new(f(span.offset()).into(), span.len())
}
2 changes: 1 addition & 1 deletion pip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ num-bigint = { workspace = true }
num-complex = { workspace = true }
qsc = { path = "../compiler/qsc" }
resource_estimator = { path = "../resource_estimator" }
miette = { workspace = true, features = ["fancy"] }
miette = { workspace = true, features = ["fancy-no-syscall"] }
rustc-hash = { workspace = true }
serde_json = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion resource_estimator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license.workspace = true
[dependencies]
qsc = { path = "../compiler/qsc" }
thiserror = { workspace = true }
miette = { workspace = true, features = ["fancy"] }
miette = { workspace = true, features = ["fancy-no-syscall"] }
num-bigint = { workspace = true }
num-complex = { workspace = true }
rand = { workspace = true }
Expand Down

0 comments on commit b3f137a

Please sign in to comment.