Skip to content

Commit 447eef1

Browse files
Rollup merge of #159974 - panstromek:update-thin-vec, r=mejrs
Update thinvec to 0.2.19 It contains `may_dangle` Drop impl under a feature flag. This allows us to use it in a lot more places, notable in types that hold `&'tcx` references. This would previously fail in borrowck in arena code. We have to enable its "unstable" feature for this. That also enables `TrustedLen` impl, which is behind unstable flag, too. I left the flag disabled, because it regressed next-solver benchmarks, but that will be fixed in PR that needs this flag (see the comment: #159974 (comment))
2 parents 1fa9eaf + 02a54aa commit 447eef1

16 files changed

Lines changed: 17 additions & 17 deletions

File tree

Cargo.lock

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

55765576
[[package]]
55775577
name = "thin-vec"
5578-
version = "0.2.18"
5578+
version = "0.2.19"
55795579
source = "registry+https://github.com/rust-lang/crates.io-index"
5580-
checksum = "b0f7e269b48f0a7dd0146680fa24b50cc67fc0373f086a5b2f99bd084639b482"
5580+
checksum = "79def32ffcd477db1ff26f76dab9e3a91f0bd42a85ca96577089b24623056f9d"
55815581

55825582
[[package]]
55835583
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.18"
18+
thin-vec = "0.2.19"
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.18"
25+
thin-vec = "0.2.19"
2626
tracing = "0.1"
2727
# 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.18"
16+
thin-vec = "0.2.19"
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.18"
23+
thin-vec = "0.2.19"
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.18"
32+
thin-vec = "0.2.19"
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.18"
33+
thin-vec = "0.2.19"
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.18"
33+
thin-vec = "0.2.19"
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.18"
26+
thin-vec = "0.2.19"
2727
tracing = "0.1"
2828
# tidy-alphabetical-end

compiler/rustc_infer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ rustc_middle = { path = "../rustc_middle" }
1717
rustc_span = { path = "../rustc_span" }
1818
rustc_type_ir = { path = "../rustc_type_ir" }
1919
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
20-
thin-vec = "0.2.18"
20+
thin-vec = "0.2.19"
2121
tracing = "0.1"
2222
# tidy-alphabetical-end

0 commit comments

Comments
 (0)