Skip to content

Commit 76e2e5f

Browse files
authored
transpile: update insta to 1.43.2 for the fix to INSTA_GLOB_FILTER so that the snapshot file is correctly resolved (#1377)
`INSTA_GLOB_FILTER` conveniently lets you run things like `INSTA_GLOB_FILTER=*/macros.c cargo test -p c2rust-transpile` to only test `macros.c`. However, previously, limiting the filter to a single snapshot messed up how the snapshot file path was calculated, resulting in a different snapshot (mitsuhiko/insta#785). Now this is fixed by mitsuhiko/insta#786, so this just updates to the latest `insta` version, which includes this fix.
2 parents a6ae587 + 3476bbf commit 76e2e5f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

c2rust-transpile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ tempfile = "3.5.0"
4444
llvm-static = ["c2rust-ast-exporter/llvm-static"]
4545

4646
[dev-dependencies]
47-
insta = { version = "1.15", features = ["glob"] }
47+
insta = { version = "1.43.2", features = ["glob"] }

pdg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ clap = { version = "3.2", features = ["derive"] }
3030
c2rust-build-paths = { path = "../c2rust-build-paths", version = "0.20.0" }
3131

3232
[dev-dependencies]
33-
insta = "1.43.1"
33+
insta = "1.43.2"
3434

3535
[package.metadata.rust-analyzer]
3636
rustc_private = true

0 commit comments

Comments
 (0)