Skip to content

Commit 5453326

Browse files
authored
Merge pull request #4468 from rust-lang/rustup-2025-07-15
Automatic Rustup
2 parents 794dc32 + f7da021 commit 5453326

File tree

214 files changed

+1817
-1340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+1817
-1340
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
[submodule "src/llvm-project"]
2626
path = src/llvm-project
2727
url = https://github.com/rust-lang/llvm-project.git
28-
branch = rustc/20.1-2025-02-13
28+
branch = rustc/20.1-2025-07-13
2929
shallow = true
3030
[submodule "src/doc/embedded-book"]
3131
path = src/doc/embedded-book

Cargo.lock

Lines changed: 33 additions & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,6 @@ version = "0.6.9"
351351
source = "registry+https://github.com/rust-lang/crates.io-index"
352352
checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"
353353

354-
[[package]]
355-
name = "bytes"
356-
version = "1.10.1"
357-
source = "registry+https://github.com/rust-lang/crates.io-index"
358-
checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
359-
360354
[[package]]
361355
name = "camino"
362356
version = "1.1.10"
@@ -636,21 +630,6 @@ dependencies = [
636630
"rustc-semver",
637631
]
638632

639-
[[package]]
640-
name = "clippy_test_deps"
641-
version = "0.1.0"
642-
dependencies = [
643-
"futures",
644-
"if_chain",
645-
"itertools",
646-
"parking_lot",
647-
"quote",
648-
"regex",
649-
"serde",
650-
"syn 2.0.104",
651-
"tokio",
652-
]
653-
654633
[[package]]
655634
name = "clippy_utils"
656635
version = "0.1.90"
@@ -1331,95 +1310,6 @@ dependencies = [
13311310
"new_debug_unreachable",
13321311
]
13331312

1334-
[[package]]
1335-
name = "futures"
1336-
version = "0.3.31"
1337-
source = "registry+https://github.com/rust-lang/crates.io-index"
1338-
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
1339-
dependencies = [
1340-
"futures-channel",
1341-
"futures-core",
1342-
"futures-executor",
1343-
"futures-io",
1344-
"futures-sink",
1345-
"futures-task",
1346-
"futures-util",
1347-
]
1348-
1349-
[[package]]
1350-
name = "futures-channel"
1351-
version = "0.3.31"
1352-
source = "registry+https://github.com/rust-lang/crates.io-index"
1353-
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
1354-
dependencies = [
1355-
"futures-core",
1356-
"futures-sink",
1357-
]
1358-
1359-
[[package]]
1360-
name = "futures-core"
1361-
version = "0.3.31"
1362-
source = "registry+https://github.com/rust-lang/crates.io-index"
1363-
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
1364-
1365-
[[package]]
1366-
name = "futures-executor"
1367-
version = "0.3.31"
1368-
source = "registry+https://github.com/rust-lang/crates.io-index"
1369-
checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
1370-
dependencies = [
1371-
"futures-core",
1372-
"futures-task",
1373-
"futures-util",
1374-
]
1375-
1376-
[[package]]
1377-
name = "futures-io"
1378-
version = "0.3.31"
1379-
source = "registry+https://github.com/rust-lang/crates.io-index"
1380-
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
1381-
1382-
[[package]]
1383-
name = "futures-macro"
1384-
version = "0.3.31"
1385-
source = "registry+https://github.com/rust-lang/crates.io-index"
1386-
checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
1387-
dependencies = [
1388-
"proc-macro2",
1389-
"quote",
1390-
"syn 2.0.104",
1391-
]
1392-
1393-
[[package]]
1394-
name = "futures-sink"
1395-
version = "0.3.31"
1396-
source = "registry+https://github.com/rust-lang/crates.io-index"
1397-
checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
1398-
1399-
[[package]]
1400-
name = "futures-task"
1401-
version = "0.3.31"
1402-
source = "registry+https://github.com/rust-lang/crates.io-index"
1403-
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
1404-
1405-
[[package]]
1406-
name = "futures-util"
1407-
version = "0.3.31"
1408-
source = "registry+https://github.com/rust-lang/crates.io-index"
1409-
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
1410-
dependencies = [
1411-
"futures-channel",
1412-
"futures-core",
1413-
"futures-io",
1414-
"futures-macro",
1415-
"futures-sink",
1416-
"futures-task",
1417-
"memchr",
1418-
"pin-project-lite",
1419-
"pin-utils",
1420-
"slab",
1421-
]
1422-
14231313
[[package]]
14241314
name = "generate-copyright"
14251315
version = "0.1.0"
@@ -1857,12 +1747,6 @@ dependencies = [
18571747
"icu_properties",
18581748
]
18591749

1860-
[[package]]
1861-
name = "if_chain"
1862-
version = "1.0.2"
1863-
source = "registry+https://github.com/rust-lang/crates.io-index"
1864-
checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed"
1865-
18661750
[[package]]
18671751
name = "ignore"
18681752
version = "0.4.23"
@@ -1956,17 +1840,6 @@ dependencies = [
19561840
"unic-langid",
19571841
]
19581842

1959-
[[package]]
1960-
name = "io-uring"
1961-
version = "0.7.8"
1962-
source = "registry+https://github.com/rust-lang/crates.io-index"
1963-
checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013"
1964-
dependencies = [
1965-
"bitflags",
1966-
"cfg-if",
1967-
"libc",
1968-
]
1969-
19701843
[[package]]
19711844
name = "ipc-channel"
19721845
version = "0.19.0"
@@ -2877,12 +2750,6 @@ version = "0.2.16"
28772750
source = "registry+https://github.com/rust-lang/crates.io-index"
28782751
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
28792752

2880-
[[package]]
2881-
name = "pin-utils"
2882-
version = "0.1.0"
2883-
source = "registry+https://github.com/rust-lang/crates.io-index"
2884-
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
2885-
28862753
[[package]]
28872754
name = "pkg-config"
28882755
version = "0.3.32"
@@ -3280,8 +3147,8 @@ dependencies = [
32803147
"rustc_codegen_ssa",
32813148
"rustc_driver",
32823149
"rustc_driver_impl",
3283-
"rustc_smir",
3284-
"stable_mir",
3150+
"rustc_public",
3151+
"rustc_public_bridge",
32853152
"tikv-jemalloc-sys",
32863153
]
32873154

@@ -3718,6 +3585,7 @@ dependencies = [
37183585
"rustc_passes",
37193586
"rustc_pattern_analysis",
37203587
"rustc_privacy",
3588+
"rustc_public",
37213589
"rustc_query_system",
37223590
"rustc_resolve",
37233591
"rustc_session",
@@ -3727,7 +3595,6 @@ dependencies = [
37273595
"rustc_ty_utils",
37283596
"serde_json",
37293597
"shlex",
3730-
"stable_mir",
37313598
"tracing",
37323599
"windows 0.61.3",
37333600
]
@@ -4424,6 +4291,36 @@ dependencies = [
44244291
"rustc-literal-escaper",
44254292
]
44264293

4294+
[[package]]
4295+
name = "rustc_public"
4296+
version = "0.1.0-preview"
4297+
dependencies = [
4298+
"rustc_abi",
4299+
"rustc_hir",
4300+
"rustc_middle",
4301+
"rustc_public_bridge",
4302+
"rustc_session",
4303+
"rustc_span",
4304+
"rustc_target",
4305+
"scoped-tls",
4306+
"serde",
4307+
"tracing",
4308+
]
4309+
4310+
[[package]]
4311+
name = "rustc_public_bridge"
4312+
version = "0.0.0"
4313+
dependencies = [
4314+
"rustc_abi",
4315+
"rustc_data_structures",
4316+
"rustc_hir",
4317+
"rustc_hir_pretty",
4318+
"rustc_middle",
4319+
"rustc_session",
4320+
"rustc_span",
4321+
"rustc_target",
4322+
]
4323+
44274324
[[package]]
44284325
name = "rustc_query_impl"
44294326
version = "0.0.0"
@@ -4551,20 +4448,6 @@ dependencies = [
45514448
"windows 0.61.3",
45524449
]
45534450

4554-
[[package]]
4555-
name = "rustc_smir"
4556-
version = "0.0.0"
4557-
dependencies = [
4558-
"rustc_abi",
4559-
"rustc_data_structures",
4560-
"rustc_hir",
4561-
"rustc_hir_pretty",
4562-
"rustc_middle",
4563-
"rustc_session",
4564-
"rustc_span",
4565-
"rustc_target",
4566-
]
4567-
45684451
[[package]]
45694452
name = "rustc_span"
45704453
version = "0.0.0"
@@ -5045,12 +4928,6 @@ version = "1.0.1"
50454928
source = "registry+https://github.com/rust-lang/crates.io-index"
50464929
checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
50474930

5048-
[[package]]
5049-
name = "slab"
5050-
version = "0.4.10"
5051-
source = "registry+https://github.com/rust-lang/crates.io-index"
5052-
checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d"
5053-
50544931
[[package]]
50554932
name = "smallvec"
50564933
version = "1.15.1"
@@ -5123,22 +5000,6 @@ version = "1.2.0"
51235000
source = "registry+https://github.com/rust-lang/crates.io-index"
51245001
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
51255002

5126-
[[package]]
5127-
name = "stable_mir"
5128-
version = "0.1.0-preview"
5129-
dependencies = [
5130-
"rustc_abi",
5131-
"rustc_hir",
5132-
"rustc_middle",
5133-
"rustc_session",
5134-
"rustc_smir",
5135-
"rustc_span",
5136-
"rustc_target",
5137-
"scoped-tls",
5138-
"serde",
5139-
"tracing",
5140-
]
5141-
51425003
[[package]]
51435004
name = "stacker"
51445005
version = "0.1.21"
@@ -5491,21 +5352,6 @@ version = "0.1.1"
54915352
source = "registry+https://github.com/rust-lang/crates.io-index"
54925353
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
54935354

5494-
[[package]]
5495-
name = "tokio"
5496-
version = "1.46.1"
5497-
source = "registry+https://github.com/rust-lang/crates.io-index"
5498-
checksum = "0cc3a2344dafbe23a245241fe8b09735b521110d30fcefbbd5feb1797ca35d17"
5499-
dependencies = [
5500-
"backtrace",
5501-
"bytes",
5502-
"io-uring",
5503-
"libc",
5504-
"mio",
5505-
"pin-project-lite",
5506-
"slab",
5507-
]
5508-
55095355
[[package]]
55105356
name = "toml"
55115357
version = "0.5.11"

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ members = [
1313
"src/tools/cargotest",
1414
"src/tools/clippy",
1515
"src/tools/clippy/clippy_dev",
16-
"src/tools/clippy/clippy_test_deps",
1716
"src/tools/collect-license-metadata",
1817
"src/tools/compiletest",
1918
"src/tools/coverage-dump",

bootstrap.example.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@
392392
# For example, to build Miri with tracing support, use `tool.miri.features = ["tracing"]`
393393
#
394394
# The default value for the `features` array is `[]`. However, please note that other flags in
395-
# `bootstrap.toml` might influence the features enabled for some tools.
395+
# `bootstrap.toml` might influence the features enabled for some tools. Also, enabling features
396+
# in tools which are not part of the internal "extra-features" preset might not always work.
396397
#build.tool.TOOL_NAME.features = [FEATURE1, FEATURE2]
397398

398399
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose, 3 == print environment variables on each rustc invocation

compiler/rustc/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
1313
rustc_driver = { path = "../rustc_driver" }
1414
rustc_driver_impl = { path = "../rustc_driver_impl" }
1515

16-
# Make sure rustc_smir ends up in the sysroot, because this
17-
# crate is intended to be used by stable MIR consumers, which are not in-tree.
18-
rustc_smir = { path = "../rustc_smir" }
16+
rustc_public = { path = "../rustc_public" }
1917

20-
stable_mir = { path = "../stable_mir" }
18+
# Make sure rustc_public_bridge ends up in the sysroot, because this
19+
# crate is intended to be used by stable MIR consumers, which are not in-tree.
20+
rustc_public_bridge = { path = "../rustc_public_bridge" }
2121
# tidy-alphabetical-end
2222

2323
[dependencies.tikv-jemalloc-sys]

compiler/rustc_ast/src/attr/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ impl AttributeExt for Attribute {
217217
_ => None,
218218
}
219219
}
220+
221+
fn is_automatically_derived_attr(&self) -> bool {
222+
self.has_name(sym::automatically_derived)
223+
}
220224
}
221225

222226
impl Attribute {
@@ -810,6 +814,7 @@ pub trait AttributeExt: Debug {
810814
.iter()
811815
.any(|kind| self.has_name(*kind))
812816
}
817+
fn is_automatically_derived_attr(&self) -> bool;
813818

814819
/// Returns the documentation and its kind if this is a doc comment or a sugared doc comment.
815820
/// * `///doc` returns `Some(("doc", CommentKind::Line))`.

0 commit comments

Comments
 (0)