Skip to content

Commit d3ab997

Browse files
Rollup merge of #158072 - Turbo87:update-thin-vec, r=lqd
Bump thin-vec to 0.2.18 to address RUSTSEC-2026-0103 thin-vec versions before 0.2.16 have a use-after-free / double-free in `IntoIter::drop` and `ThinVec::clear` when an element's `Drop` panics ([RUSTSEC-2026-0103](https://rustsec.org/advisories/RUSTSEC-2026-0103)). This bumps the requirement in the compiler crates from `0.2.15` to `0.2.18` and updates `Cargo.lock` accordingly, moving past the affected range.
2 parents 9e0a2c1 + 7786ffc commit d3ab997

17 files changed

Lines changed: 18 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5554,9 +5554,9 @@ dependencies = [
55545554

55555555
[[package]]
55565556
name = "thin-vec"
5557-
version = "0.2.15"
5557+
version = "0.2.18"
55585558
source = "registry+https://github.com/rust-lang/crates.io-index"
5559-
checksum = "da322882471314edc77fa5232c587bcb87c9df52bfd0d7d4826f8868ead61899"
5559+
checksum = "b0f7e269b48f0a7dd0146680fa24b50cc67fc0373f086a5b2f99bd084639b482"
55605560

55615561
[[package]]
55625562
name = "thiserror"

compiler/rustc_ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ rustc_macros = { path = "../rustc_macros" }
1515
rustc_serialize = { path = "../rustc_serialize" }
1616
rustc_span = { path = "../rustc_span" }
1717
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
18-
thin-vec = "0.2.15"
18+
thin-vec = "0.2.18"
1919
tracing = "0.1"
2020
# tidy-alphabetical-end

compiler/rustc_ast_lowering/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ rustc_session = { path = "../rustc_session" }
2222
rustc_span = { path = "../rustc_span" }
2323
rustc_target = { path = "../rustc_target" }
2424
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
25-
thin-vec = "0.2.15"
25+
thin-vec = "0.2.18"
2626
tracing = "0.1"
2727
# tidy-alphabetical-end

compiler/rustc_ast_passes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ rustc_macros = { path = "../rustc_macros" }
1818
rustc_session = { path = "../rustc_session" }
1919
rustc_span = { path = "../rustc_span" }
2020
rustc_target = { path = "../rustc_target" }
21-
thin-vec = "0.2.15"
21+
thin-vec = "0.2.18"
2222
# tidy-alphabetical-end

compiler/rustc_ast_pretty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ rustc_span = { path = "../rustc_span" }
1313

1414
[dev-dependencies]
1515
# tidy-alphabetical-start
16-
thin-vec = "0.2.15"
16+
thin-vec = "0.2.18"
1717
# tidy-alphabetical-end

compiler/rustc_attr_parsing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ rustc_parse_format = { path = "../rustc_parse_format" }
2020
rustc_session = { path = "../rustc_session" }
2121
rustc_span = { path = "../rustc_span" }
2222
rustc_target = { path = "../rustc_target" }
23-
thin-vec = "0.2.15"
23+
thin-vec = "0.2.18"
2424
# tidy-alphabetical-end

compiler/rustc_builtin_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rustc_session = { path = "../rustc_session" }
2929
rustc_span = { path = "../rustc_span" }
3030
rustc_target = { path = "../rustc_target" }
3131
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
32-
thin-vec = "0.2.15"
32+
thin-vec = "0.2.18"
3333
tracing = "0.1"
3434
# tidy-alphabetical-end
3535

compiler/rustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ smallvec = { version = "1.8.1", features = [
3030
] }
3131
stacker = "0.1.17"
3232
tempfile = "3.2"
33-
thin-vec = "0.2.15"
33+
thin-vec = "0.2.18"
3434
tracing = "0.1"
3535
# tidy-alphabetical-end
3636

compiler/rustc_expand/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ rustc_session = { path = "../rustc_session" }
3030
rustc_span = { path = "../rustc_span" }
3131
scoped-tls = "1.0"
3232
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
33-
thin-vec = "0.2.15"
33+
thin-vec = "0.2.18"
3434
tracing = "0.1"
3535
# tidy-alphabetical-end

compiler/rustc_hir/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ rustc_serialize = { path = "../rustc_serialize" }
2323
rustc_span = { path = "../rustc_span" }
2424
rustc_target = { path = "../rustc_target" }
2525
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
26-
thin-vec = "0.2.15"
26+
thin-vec = "0.2.18"
2727
tracing = "0.1"
2828
# tidy-alphabetical-end

0 commit comments

Comments
 (0)