Skip to content

Commit 64a965e

Browse files
committed
Auto merge of #156441 - JonathanBrouwer:rollup-7K8EuPO, r=JonathanBrouwer
Rollup of 13 pull requests Successful merges: - #156437 (`rust-analyzer` subtree update) - #156357 (tests: ip*_properties: avoid parsing the IP over and over again) - #156389 (prepare fs tests for miri) - #156147 (Update ICU4X to 2.2) - #156375 (kernel_copy tests: properly join background threads) - #156406 (resolve: Module-related refactorings) - #155946 (Refuse to push changes with a dirty git client) - #156282 (Update `sysinfo` version to `0.39.0`) - #156372 (remove allows_weak_linkage target spec flag) - #156384 (Remove some dead code for dumping MIR for a single DefId) - #156392 (Improve doc comments for f32::ceil() and f32::floor()) - #156411 (bootstrap: Don't panic on `x install --set build.extended=true`) - #156426 (Fix unwanted "Available on XX-bit only" in libcore integers)
2 parents 8afb6a8 + 33670e2 commit 64a965e

589 files changed

Lines changed: 22217 additions & 12218 deletions

File tree

Some content is hidden

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

Cargo.lock

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,22 +1759,23 @@ dependencies = [
17591759

17601760
[[package]]
17611761
name = "icu_collections"
1762-
version = "2.1.1"
1762+
version = "2.2.0"
17631763
source = "registry+https://github.com/rust-lang/crates.io-index"
1764-
checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"
1764+
checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
17651765
dependencies = [
17661766
"displaydoc",
17671767
"potential_utf",
1768+
"utf8_iter",
17681769
"yoke",
17691770
"zerofrom",
17701771
"zerovec",
17711772
]
17721773

17731774
[[package]]
17741775
name = "icu_list"
1775-
version = "2.1.1"
1776+
version = "2.2.0"
17761777
source = "registry+https://github.com/rust-lang/crates.io-index"
1777-
checksum = "d3a0b7b126e2fc42777d3c348611553d540bd3683caa39b387c5dd1036bb21a8"
1778+
checksum = "aeeaf517689324395bed4767f7c65504f5455942ed4c14ee54c2087ca00b816e"
17781779
dependencies = [
17791780
"icu_provider",
17801781
"regex-automata",
@@ -1785,9 +1786,9 @@ dependencies = [
17851786

17861787
[[package]]
17871788
name = "icu_locale"
1788-
version = "2.1.1"
1789+
version = "2.2.0"
17891790
source = "registry+https://github.com/rust-lang/crates.io-index"
1790-
checksum = "532b11722e350ab6bf916ba6eb0efe3ee54b932666afec989465f9243fe6dd60"
1791+
checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26"
17911792
dependencies = [
17921793
"icu_collections",
17931794
"icu_locale_core",
@@ -1800,9 +1801,9 @@ dependencies = [
18001801

18011802
[[package]]
18021803
name = "icu_locale_core"
1803-
version = "2.1.1"
1804+
version = "2.2.0"
18041805
source = "registry+https://github.com/rust-lang/crates.io-index"
1805-
checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"
1806+
checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
18061807
dependencies = [
18071808
"displaydoc",
18081809
"litemap",
@@ -1814,15 +1815,15 @@ dependencies = [
18141815

18151816
[[package]]
18161817
name = "icu_locale_data"
1817-
version = "2.1.1"
1818+
version = "2.2.0"
18181819
source = "registry+https://github.com/rust-lang/crates.io-index"
1819-
checksum = "f03e2fcaefecdf05619f3d6f91740e79ab969b4dd54f77cbf546b1d0d28e3147"
1820+
checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
18201821

18211822
[[package]]
18221823
name = "icu_normalizer"
1823-
version = "2.1.1"
1824+
version = "2.2.0"
18241825
source = "registry+https://github.com/rust-lang/crates.io-index"
1825-
checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"
1826+
checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
18261827
dependencies = [
18271828
"icu_collections",
18281829
"icu_normalizer_data",
@@ -1834,15 +1835,15 @@ dependencies = [
18341835

18351836
[[package]]
18361837
name = "icu_normalizer_data"
1837-
version = "2.1.1"
1838+
version = "2.2.0"
18381839
source = "registry+https://github.com/rust-lang/crates.io-index"
1839-
checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"
1840+
checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
18401841

18411842
[[package]]
18421843
name = "icu_properties"
1843-
version = "2.1.1"
1844+
version = "2.2.0"
18441845
source = "registry+https://github.com/rust-lang/crates.io-index"
1845-
checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99"
1846+
checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
18461847
dependencies = [
18471848
"icu_collections",
18481849
"icu_locale_core",
@@ -1854,15 +1855,15 @@ dependencies = [
18541855

18551856
[[package]]
18561857
name = "icu_properties_data"
1857-
version = "2.1.1"
1858+
version = "2.2.0"
18581859
source = "registry+https://github.com/rust-lang/crates.io-index"
1859-
checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899"
1860+
checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
18601861

18611862
[[package]]
18621863
name = "icu_provider"
1863-
version = "2.1.1"
1864+
version = "2.2.0"
18641865
source = "registry+https://github.com/rust-lang/crates.io-index"
1865-
checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"
1866+
checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
18661867
dependencies = [
18671868
"displaydoc",
18681869
"icu_locale_core",
@@ -3113,9 +3114,9 @@ checksum = "07589615d719a60c8dd8a4622e7946465dfef20d1a428f969e3443e7386d5f45"
31133114

31143115
[[package]]
31153116
name = "quote"
3116-
version = "1.0.42"
3117+
version = "1.0.45"
31173118
source = "registry+https://github.com/rust-lang/crates.io-index"
3118-
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
3119+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
31193120
dependencies = [
31203121
"proc-macro2",
31213122
]
@@ -5339,9 +5340,9 @@ dependencies = [
53395340

53405341
[[package]]
53415342
name = "sysinfo"
5342-
version = "0.38.4"
5343+
version = "0.39.0"
53435344
source = "registry+https://github.com/rust-lang/crates.io-index"
5344-
checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f"
5345+
checksum = "cd9f9fe3d2b7b75cf4f2805e5b9926e8ac47146667b16b86298c4a8bf08cc469"
53455346
dependencies = [
53465347
"libc",
53475348
"objc2-core-foundation",
@@ -5552,9 +5553,9 @@ dependencies = [
55525553

55535554
[[package]]
55545555
name = "tinystr"
5555-
version = "0.8.2"
5556+
version = "0.8.3"
55565557
source = "registry+https://github.com/rust-lang/crates.io-index"
5557-
checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"
5558+
checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
55585559
dependencies = [
55595560
"displaydoc",
55605561
"serde_core",
@@ -6714,9 +6715,9 @@ dependencies = [
67146715

67156716
[[package]]
67166717
name = "yoke"
6717-
version = "0.8.1"
6718+
version = "0.8.2"
67186719
source = "registry+https://github.com/rust-lang/crates.io-index"
6719-
checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"
6720+
checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
67206721
dependencies = [
67216722
"stable_deref_trait",
67226723
"yoke-derive",
@@ -6725,9 +6726,9 @@ dependencies = [
67256726

67266727
[[package]]
67276728
name = "yoke-derive"
6728-
version = "0.8.1"
6729+
version = "0.8.2"
67296730
source = "registry+https://github.com/rust-lang/crates.io-index"
6730-
checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"
6731+
checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
67316732
dependencies = [
67326733
"proc-macro2",
67336734
"quote",
@@ -6778,20 +6779,21 @@ dependencies = [
67786779

67796780
[[package]]
67806781
name = "zerotrie"
6781-
version = "0.2.3"
6782+
version = "0.2.4"
67826783
source = "registry+https://github.com/rust-lang/crates.io-index"
6783-
checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"
6784+
checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
67846785
dependencies = [
67856786
"displaydoc",
67866787
"yoke",
67876788
"zerofrom",
6789+
"zerovec",
67886790
]
67896791

67906792
[[package]]
67916793
name = "zerovec"
6792-
version = "0.11.5"
6794+
version = "0.11.6"
67936795
source = "registry+https://github.com/rust-lang/crates.io-index"
6794-
checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"
6796+
checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
67956797
dependencies = [
67966798
"serde",
67976799
"yoke",
@@ -6801,9 +6803,9 @@ dependencies = [
68016803

68026804
[[package]]
68036805
name = "zerovec-derive"
6804-
version = "0.11.2"
6806+
version = "0.11.3"
68056807
source = "registry+https://github.com/rust-lang/crates.io-index"
6806-
checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"
6808+
checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
68076809
dependencies = [
68086810
"proc-macro2",
68096811
"quote",

compiler/rustc_baked_icu_data/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8-
icu_list = { version = "2.0", default-features = false }
9-
icu_locale = { version = "2.0", default-features = false, features = ["compiled_data"] }
10-
icu_provider = { version = "2.0", features = ["baked", "sync"] }
8+
icu_list = { version = "2.2", default-features = false }
9+
icu_locale = { version = "2.2", default-features = false, features = ["compiled_data"] }
10+
icu_provider = { version = "2.2", features = ["baked", "sync"] }
1111
zerovec = "0.11.0"
1212
# tidy-alphabetical-end

compiler/rustc_baked_icu_data/src/data/list_and_v1.rs.data

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

compiler/rustc_baked_icu_data/src/data/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include!("list_and_v1.rs.data");
1515
#[macro_export]
1616
macro_rules! __make_provider {
1717
($ name : ty) => {
18-
#[clippy::msrv = "1.82"]
18+
#[clippy::msrv = "1.86"]
1919
impl $name {
2020
#[allow(dead_code)]
2121
pub(crate) const MUST_USE_MAKE_PROVIDER_MACRO: () = ();

compiler/rustc_driver_impl/src/pretty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
301301
}
302302
Mir => {
303303
let mut out = Vec::new();
304-
write_mir_pretty(ex.tcx(), None, &mut out).unwrap();
304+
write_mir_pretty(ex.tcx(), &mut out).unwrap();
305305
String::from_utf8(out).unwrap()
306306
}
307307
MirCFG => {
308308
let mut out = Vec::new();
309-
write_mir_graphviz(ex.tcx(), None, &mut out).unwrap();
309+
write_mir_graphviz(ex.tcx(), &mut out).unwrap();
310310
String::from_utf8(out).unwrap()
311311
}
312312
StableMir => {

compiler/rustc_error_messages/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ edition = "2024"
66
[dependencies]
77
# tidy-alphabetical-start
88
fluent-bundle = "0.16"
9-
icu_list = { version = "2.0", default-features = false, features = ["alloc"] }
10-
icu_locale = { version = "2.0", default-features = false }
9+
icu_list = { version = "2.2", default-features = false, features = ["alloc"] }
10+
icu_locale = { version = "2.2", default-features = false }
1111
intl-memoizer = "0.5.1"
1212
rustc_baked_icu_data = { path = "../rustc_baked_icu_data" }
1313
rustc_data_structures = { path = "../rustc_data_structures" }

compiler/rustc_middle/src/mir/graphviz.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@ use gsgdt::GraphvizSettings;
44
use rustc_graphviz as dot;
55

66
use super::generic_graph::mir_fn_to_generic_graph;
7-
use super::pretty::dump_mir_def_ids;
87
use crate::mir::*;
98

109
/// Write a graphviz DOT graph of a list of MIRs.
11-
pub fn write_mir_graphviz<W>(tcx: TyCtxt<'_>, single: Option<DefId>, w: &mut W) -> io::Result<()>
10+
pub fn write_mir_graphviz<W>(tcx: TyCtxt<'_>, w: &mut W) -> io::Result<()>
1211
where
1312
W: Write,
1413
{
15-
let def_ids = dump_mir_def_ids(tcx, single);
16-
17-
let mirs = def_ids
14+
let mirs = tcx
15+
.mir_keys(())
1816
.iter()
1917
.filter(|&&def_id| !tcx.is_trivial_const(def_id))
2018
.flat_map(|&def_id| {
2119
if tcx.is_const_fn(def_id) {
2220
vec![tcx.optimized_mir(def_id), tcx.mir_for_ctfe(def_id)]
2321
} else {
24-
vec![tcx.instance_mir(ty::InstanceKind::Item(def_id))]
22+
vec![tcx.instance_mir(ty::InstanceKind::Item(def_id.to_def_id()))]
2523
}
2624
})
2725
.collect::<Vec<_>>();

compiler/rustc_middle/src/mir/pretty.rs

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -312,21 +312,17 @@ impl<'a, 'tcx> MirDumper<'a, 'tcx> {
312312
///////////////////////////////////////////////////////////////////////////
313313
// Whole MIR bodies
314314

315-
/// Write out a human-readable textual representation for the given MIR, with the default
316-
/// [PrettyPrintMirOptions].
317-
pub fn write_mir_pretty<'tcx>(
318-
tcx: TyCtxt<'tcx>,
319-
single: Option<DefId>,
320-
w: &mut dyn io::Write,
321-
) -> io::Result<()> {
315+
/// Write out a human-readable textual representation of this crate's MIR,
316+
/// with the default [`PrettyPrintMirOptions`].
317+
pub fn write_mir_pretty<'tcx>(tcx: TyCtxt<'tcx>, w: &mut dyn io::Write) -> io::Result<()> {
322318
let writer = MirWriter::new(tcx);
323319

324320
writeln!(w, "// WARNING: This output format is intended for human consumers only")?;
325321
writeln!(w, "// and is subject to change without notice. Knock yourself out.")?;
326322
writeln!(w, "// HINT: See also -Z dump-mir for MIR at specific points during compilation.")?;
327323

328324
let mut first = true;
329-
for def_id in dump_mir_def_ids(tcx, single) {
325+
for &def_id in tcx.mir_keys(()) {
330326
if first {
331327
first = false;
332328
} else {
@@ -360,7 +356,7 @@ pub fn write_mir_pretty<'tcx>(
360356
}
361357
writeln!(w, ": {} = const {};", ty, Const::Val(val, ty))?;
362358
} else {
363-
let instance_mir = tcx.instance_mir(ty::InstanceKind::Item(def_id));
359+
let instance_mir = tcx.instance_mir(ty::InstanceKind::Item(def_id.to_def_id()));
364360
render_body(w, instance_mir)?;
365361
}
366362
}
@@ -698,14 +694,6 @@ fn write_user_type_annotations(
698694
Ok(())
699695
}
700696

701-
pub fn dump_mir_def_ids(tcx: TyCtxt<'_>, single: Option<DefId>) -> Vec<DefId> {
702-
if let Some(i) = single {
703-
vec![i]
704-
} else {
705-
tcx.mir_keys(()).iter().map(|def_id| def_id.to_def_id()).collect()
706-
}
707-
}
708-
709697
///////////////////////////////////////////////////////////////////////////
710698
// Basic blocks and their parts (statements, terminators, ...)
711699

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,8 @@ impl<'tcx> TyCtxt<'tcx> {
20732073
///
20742074
/// Even if this returns `true`, constness may still be unstable!
20752075
#[inline]
2076-
pub fn is_const_fn(self, def_id: DefId) -> bool {
2076+
pub fn is_const_fn(self, def_id: impl IntoQueryKey<DefId>) -> bool {
2077+
let def_id = def_id.into_query_key();
20772078
matches!(
20782079
self.def_kind(def_id),
20792080
DefKind::Fn | DefKind::AssocFn | DefKind::Ctor(_, CtorKind::Fn) | DefKind::Closure

compiler/rustc_mir_transform/src/dump_mir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ pub fn emit_mir(tcx: TyCtxt<'_>) -> io::Result<()> {
2525
match tcx.output_filenames(()).path(OutputType::Mir) {
2626
OutFileName::Stdout => {
2727
let mut f = io::stdout();
28-
write_mir_pretty(tcx, None, &mut f)?;
28+
write_mir_pretty(tcx, &mut f)?;
2929
}
3030
OutFileName::Real(path) => {
3131
let mut f = File::create_buffered(&path)?;
32-
write_mir_pretty(tcx, None, &mut f)?;
32+
write_mir_pretty(tcx, &mut f)?;
3333
if tcx.sess.opts.json_artifact_notifications {
3434
tcx.dcx().emit_artifact_notification(&path, "mir");
3535
}

0 commit comments

Comments
 (0)