Skip to content

Commit b1277d0

Browse files
committed
Auto merge of #78874 - m-ou-se:rollup-3jp1ijj, r=m-ou-se
Rollup of 19 pull requests Successful merges: - #76097 (Stabilize hint::spin_loop) - #76227 (Stabilize `Poll::is_ready` and `is_pending` as const) - #78065 (make concurrency helper more pleasant to read) - #78570 (Remove FIXME comment in print_type_sizes ui test suite) - #78572 (Use SOCK_CLOEXEC and accept4() on more platforms.) - #78658 (Add a tool to run `x.py` from any subdirectory) - #78706 (Fix run-make tests running when LLVM is disabled) - #78728 (Constantify `UnsafeCell::into_inner` and related) - #78775 (Bump Rustfmt and RLS) - #78788 (Correct unsigned equivalent of isize to be usize) - #78811 (Make some std::io functions `const`) - #78828 (use single char patterns for split() (clippy::single_char_pattern)) - #78841 (Small cleanup in `TypeFoldable` derive macro) - #78842 (Honor the rustfmt setting in config.toml) - #78843 (Less verbose debug logging from inlining integrator) - #78852 (Convert a bunch of intra-doc links) - #78860 (rustc_resolve: Use `#![feature(format_args_capture)]`) - #78861 (typo and formatting) - #78865 (Don't fire `CONST_ITEM_MUTATION` lint when borrowing a deref) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 87a0997 + 91759b2 commit b1277d0

Some content is hidden

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

63 files changed

+516
-314
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ __pycache__/
3131
/inst/
3232
/llvm/
3333
/mingw-build/
34+
/src/tools/x/target
3435
# Created by default with `src/ci/docker/run.sh`:
3536
/obj/
3637
/unicode-downloads

Cargo.lock

+48-59
Original file line numberDiff line numberDiff line change
@@ -1966,18 +1966,6 @@ dependencies = [
19661966
"toml",
19671967
]
19681968

1969-
[[package]]
1970-
name = "measureme"
1971-
version = "0.7.1"
1972-
source = "registry+https://github.com/rust-lang/crates.io-index"
1973-
checksum = "fef709d3257013bba7cff14fc504e07e80631d3fe0f6d38ce63b8f6510ccb932"
1974-
dependencies = [
1975-
"byteorder",
1976-
"memmap",
1977-
"parking_lot 0.9.0",
1978-
"rustc-hash",
1979-
]
1980-
19811969
[[package]]
19821970
name = "measureme"
19831971
version = "9.0.0"
@@ -2705,9 +2693,9 @@ dependencies = [
27052693

27062694
[[package]]
27072695
name = "racer"
2708-
version = "2.1.39"
2696+
version = "2.1.40"
27092697
source = "registry+https://github.com/rust-lang/crates.io-index"
2710-
checksum = "b9424b4650b9c1134d0a1b34dab82319691e1c95fa8af1658fc640deb1b6823c"
2698+
checksum = "68c5fb83bc092c10e12ca863ab8922b1833382d5d248aaafca779886d3396a44"
27112699
dependencies = [
27122700
"bitflags",
27132701
"clap",
@@ -3033,19 +3021,18 @@ dependencies = [
30333021

30343022
[[package]]
30353023
name = "rustc-ap-rustc_arena"
3036-
version = "679.0.0"
3024+
version = "686.0.0"
30373025
source = "registry+https://github.com/rust-lang/crates.io-index"
3038-
checksum = "e8e941a8fc3878a111d2bbfe78e39522d884136f0b412b12592195f26f653476"
3026+
checksum = "477085eefed2f12085c68577cc3827c8c39a31a4a750978aacb9af10f7903174"
30393027
dependencies = [
3040-
"rustc-ap-rustc_data_structures",
30413028
"smallvec 1.4.2",
30423029
]
30433030

30443031
[[package]]
30453032
name = "rustc-ap-rustc_ast"
3046-
version = "679.0.0"
3033+
version = "686.0.0"
30473034
source = "registry+https://github.com/rust-lang/crates.io-index"
3048-
checksum = "3b58b6b035710df7f339a2bf86f6dafa876efd95439540970e24609e33598ca6"
3035+
checksum = "4d4ad5ec25f6b3d122354595be0d1b513f37fca3299d9b448b1db28f4a9e4b12"
30493036
dependencies = [
30503037
"bitflags",
30513038
"rustc-ap-rustc_data_structures",
@@ -3060,9 +3047,9 @@ dependencies = [
30603047

30613048
[[package]]
30623049
name = "rustc-ap-rustc_ast_passes"
3063-
version = "679.0.0"
3050+
version = "686.0.0"
30643051
source = "registry+https://github.com/rust-lang/crates.io-index"
3065-
checksum = "3d379a900d6a1f098490d92ab83e87487dcee2e4ec3f04c3ac4512b5117b64e2"
3052+
checksum = "0c6d8635298d7736decdb3c6e92e784d3eccde557462a9c10ac11a34fec3d756"
30663053
dependencies = [
30673054
"itertools 0.9.0",
30683055
"rustc-ap-rustc_ast",
@@ -3079,9 +3066,9 @@ dependencies = [
30793066

30803067
[[package]]
30813068
name = "rustc-ap-rustc_ast_pretty"
3082-
version = "679.0.0"
3069+
version = "686.0.0"
30833070
source = "registry+https://github.com/rust-lang/crates.io-index"
3084-
checksum = "658d925c0da9e3c5cddc5e54f4fa8c03b41aff1fc6dc5e41837c1118ad010ac0"
3071+
checksum = "7a61bdb5252e1a95b7715038949e10f07ce770a436fcd497cdd9bc7255471de9"
30853072
dependencies = [
30863073
"rustc-ap-rustc_ast",
30873074
"rustc-ap-rustc_span",
@@ -3091,9 +3078,9 @@ dependencies = [
30913078

30923079
[[package]]
30933080
name = "rustc-ap-rustc_attr"
3094-
version = "679.0.0"
3081+
version = "686.0.0"
30953082
source = "registry+https://github.com/rust-lang/crates.io-index"
3096-
checksum = "3f387037534f34c148aed753622677500e42d190a095670e7ac3fffc09811a59"
3083+
checksum = "84520a16cb61bd31e9c27e87eca5d933a9c94ac84f25649bddcc19989275ab2a"
30973084
dependencies = [
30983085
"rustc-ap-rustc_ast",
30993086
"rustc-ap-rustc_ast_pretty",
@@ -3110,18 +3097,19 @@ dependencies = [
31103097

31113098
[[package]]
31123099
name = "rustc-ap-rustc_data_structures"
3113-
version = "679.0.0"
3100+
version = "686.0.0"
31143101
source = "registry+https://github.com/rust-lang/crates.io-index"
3115-
checksum = "14ffd17a37e00d77926a0713f191c59ff3aeb2b551a024c7cfffce14bab79be8"
3102+
checksum = "b1cb2b6a38759cf7c0c1434c8b4cbfcab9cd24970d05f960f2ca01226ddb4d68"
31163103
dependencies = [
3104+
"arrayvec",
31173105
"bitflags",
31183106
"cfg-if 0.1.10",
31193107
"crossbeam-utils 0.7.2",
31203108
"ena",
31213109
"indexmap",
31223110
"jobserver",
31233111
"libc",
3124-
"measureme 0.7.1",
3112+
"measureme",
31253113
"parking_lot 0.11.0",
31263114
"rustc-ap-rustc_graphviz",
31273115
"rustc-ap-rustc_index",
@@ -3140,9 +3128,9 @@ dependencies = [
31403128

31413129
[[package]]
31423130
name = "rustc-ap-rustc_errors"
3143-
version = "679.0.0"
3131+
version = "686.0.0"
31443132
source = "registry+https://github.com/rust-lang/crates.io-index"
3145-
checksum = "2b3263ddcfa9eb911e54a4e8088878dd9fd10e00d8b99b01033ba4a2733fe91d"
3133+
checksum = "46cfb19536426bf9252827a78552d635be207a4be74f4e92832aad82d7f2135c"
31463134
dependencies = [
31473135
"annotate-snippets 0.8.0",
31483136
"atty",
@@ -3159,9 +3147,9 @@ dependencies = [
31593147

31603148
[[package]]
31613149
name = "rustc-ap-rustc_expand"
3162-
version = "679.0.0"
3150+
version = "686.0.0"
31633151
source = "registry+https://github.com/rust-lang/crates.io-index"
3164-
checksum = "e1ab7e68cede8a2273fd8b8623002ce9dc832e061dfc3330e9bcc1fc2a722d73"
3152+
checksum = "6273e60042a0ef31f6cfe783c519873993eb426f055be2bc058a48b6ca3934d0"
31653153
dependencies = [
31663154
"rustc-ap-rustc_ast",
31673155
"rustc-ap-rustc_ast_passes",
@@ -3182,31 +3170,31 @@ dependencies = [
31823170

31833171
[[package]]
31843172
name = "rustc-ap-rustc_feature"
3185-
version = "679.0.0"
3173+
version = "686.0.0"
31863174
source = "registry+https://github.com/rust-lang/crates.io-index"
3187-
checksum = "eea2dc95421bc19bbd4d939399833a882c46b684283b4267ad1fcf982fc043d9"
3175+
checksum = "2936e8346157e2848305e509f38aa3ed4e97697975ef68027587f5db6a38703f"
31883176
dependencies = [
31893177
"rustc-ap-rustc_data_structures",
31903178
"rustc-ap-rustc_span",
31913179
]
31923180

31933181
[[package]]
31943182
name = "rustc-ap-rustc_fs_util"
3195-
version = "679.0.0"
3183+
version = "686.0.0"
31963184
source = "registry+https://github.com/rust-lang/crates.io-index"
3197-
checksum = "1e44c1804f09635f83f6cf1e04c2e92f8aeb7b4e850ac6c53d373dab02c13053"
3185+
checksum = "9b4c3ae17776b5a5aa441ca510a650f75805e1f5569edd231caa8378552195a4"
31983186

31993187
[[package]]
32003188
name = "rustc-ap-rustc_graphviz"
3201-
version = "679.0.0"
3189+
version = "686.0.0"
32023190
source = "registry+https://github.com/rust-lang/crates.io-index"
3203-
checksum = "dc491f2b9be6e928f6df6b287549b8d50c48e8eff8638345155f40fa2cfb785d"
3191+
checksum = "5611bf0ac0ac49c2a22c959c7d8b17f85f69959293f0e8c4f753eca832fe7ad0"
32043192

32053193
[[package]]
32063194
name = "rustc-ap-rustc_index"
3207-
version = "679.0.0"
3195+
version = "686.0.0"
32083196
source = "registry+https://github.com/rust-lang/crates.io-index"
3209-
checksum = "fa73f3fed413cdb6290738a10267da17b9ae8e02087334778b9a8c9491c5efc0"
3197+
checksum = "ca67cf37c427057192e451c7f912e94ae9a8ca5ad69fd481c011fad3f86982cb"
32103198
dependencies = [
32113199
"arrayvec",
32123200
"rustc-ap-rustc_macros",
@@ -3215,18 +3203,18 @@ dependencies = [
32153203

32163204
[[package]]
32173205
name = "rustc-ap-rustc_lexer"
3218-
version = "679.0.0"
3206+
version = "686.0.0"
32193207
source = "registry+https://github.com/rust-lang/crates.io-index"
3220-
checksum = "e993881244a92f3b44cf43c8f22ae2ca5cefe4f55a34e2b65b72ee66fe5ad077"
3208+
checksum = "a5b04cd2159495584d976d501c5394498470c2e94e4f0cebb8186562d407a678"
32213209
dependencies = [
32223210
"unicode-xid",
32233211
]
32243212

32253213
[[package]]
32263214
name = "rustc-ap-rustc_macros"
3227-
version = "679.0.0"
3215+
version = "686.0.0"
32283216
source = "registry+https://github.com/rust-lang/crates.io-index"
3229-
checksum = "4effe366556e1d75344764adf4d54cba7c2fad33dbd07588e96d0853831ddc7c"
3217+
checksum = "61ec6d623853449acd3c65050d249d3674edab5f6e4d9f074c7bac183269f9c8"
32303218
dependencies = [
32313219
"proc-macro2",
32323220
"quote",
@@ -3236,9 +3224,9 @@ dependencies = [
32363224

32373225
[[package]]
32383226
name = "rustc-ap-rustc_parse"
3239-
version = "679.0.0"
3227+
version = "686.0.0"
32403228
source = "registry+https://github.com/rust-lang/crates.io-index"
3241-
checksum = "0342675835251571471d3dca9ea1576a853a8dfa1f4b0084db283c861223cb60"
3229+
checksum = "ca524bafce4b04d2b49fee2d40b4b26c3ebab9f1a4f731fdf561f00617862f02"
32423230
dependencies = [
32433231
"bitflags",
32443232
"rustc-ap-rustc_ast",
@@ -3256,19 +3244,19 @@ dependencies = [
32563244

32573245
[[package]]
32583246
name = "rustc-ap-rustc_serialize"
3259-
version = "679.0.0"
3247+
version = "686.0.0"
32603248
source = "registry+https://github.com/rust-lang/crates.io-index"
3261-
checksum = "438255ed968d73bf6573aa18d3b8d33c0a85ecdfd14160ef09ff813938e0606c"
3249+
checksum = "c67920561e58f98c4de864407c92b2dd05ace5d5e5301e17444f10f742c005b7"
32623250
dependencies = [
32633251
"indexmap",
32643252
"smallvec 1.4.2",
32653253
]
32663254

32673255
[[package]]
32683256
name = "rustc-ap-rustc_session"
3269-
version = "679.0.0"
3257+
version = "686.0.0"
32703258
source = "registry+https://github.com/rust-lang/crates.io-index"
3271-
checksum = "7d61ff76dede8eb827f6805754900d1097a7046f938f950231b62b448f55bf78"
3259+
checksum = "0762fd855792e06ef639327237898e4e092ad68150e6a8e19aeb7dc06276ad7a"
32723260
dependencies = [
32733261
"bitflags",
32743262
"getopts",
@@ -3287,9 +3275,9 @@ dependencies = [
32873275

32883276
[[package]]
32893277
name = "rustc-ap-rustc_span"
3290-
version = "679.0.0"
3278+
version = "686.0.0"
32913279
source = "registry+https://github.com/rust-lang/crates.io-index"
3292-
checksum = "1c267f15c3cfc82a8a441d2bf86bcccf299d1eb625822468e3d8ee6f7c5a1c89"
3280+
checksum = "0bf3db7b4ca5d21c14c45475df155e5e020c9a3760346945a662c9a9053b49c8"
32933281
dependencies = [
32943282
"cfg-if 0.1.10",
32953283
"md-5 0.8.0",
@@ -3306,9 +3294,9 @@ dependencies = [
33063294

33073295
[[package]]
33083296
name = "rustc-ap-rustc_target"
3309-
version = "679.0.0"
3297+
version = "686.0.0"
33103298
source = "registry+https://github.com/rust-lang/crates.io-index"
3311-
checksum = "8b1b4b266c4d44aac0f7f83b6741d8f0545b03d1ce32f3b5254f2014225cb96c"
3299+
checksum = "3aa6560bb9742b276064d67ab9edb5766ecb303f8ae3854835ad3fad4b432188"
33123300
dependencies = [
33133301
"bitflags",
33143302
"rustc-ap-rustc_data_structures",
@@ -3393,6 +3381,7 @@ dependencies = [
33933381
name = "rustc-workspace-hack"
33943382
version = "1.0.0"
33953383
dependencies = [
3384+
"byteorder",
33963385
"crossbeam-utils 0.7.2",
33973386
"proc-macro2",
33983387
"quote",
@@ -3523,7 +3512,7 @@ version = "0.0.0"
35233512
dependencies = [
35243513
"bitflags",
35253514
"libc",
3526-
"measureme 9.0.0",
3515+
"measureme",
35273516
"rustc-demangle",
35283517
"rustc_ast",
35293518
"rustc_attr",
@@ -3589,7 +3578,7 @@ dependencies = [
35893578
"indexmap",
35903579
"jobserver",
35913580
"libc",
3592-
"measureme 9.0.0",
3581+
"measureme",
35933582
"parking_lot 0.11.0",
35943583
"rustc-hash",
35953584
"rustc-rayon",
@@ -3907,7 +3896,7 @@ version = "0.0.0"
39073896
dependencies = [
39083897
"bitflags",
39093898
"chalk-ir",
3910-
"measureme 9.0.0",
3899+
"measureme",
39113900
"polonius-engine",
39123901
"rustc-rayon-core",
39133902
"rustc_apfloat",
@@ -4340,7 +4329,7 @@ dependencies = [
43404329

43414330
[[package]]
43424331
name = "rustfmt-nightly"
4343-
version = "1.4.22"
4332+
version = "1.4.24"
43444333
dependencies = [
43454334
"annotate-snippets 0.6.1",
43464335
"anyhow",
@@ -5263,7 +5252,7 @@ dependencies = [
52635252
"chrono",
52645253
"lazy_static",
52655254
"matchers",
5266-
"parking_lot 0.11.0",
5255+
"parking_lot 0.9.0",
52675256
"regex",
52685257
"serde",
52695258
"serde_json",

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ members = [
2929
"src/tools/unicode-table-generator",
3030
"src/tools/expand-yaml-anchors",
3131
]
32+
3233
exclude = [
3334
"build",
3435
"compiler/rustc_codegen_cranelift",
3536
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
3637
"obj",
38+
# The `x` binary is a thin wrapper that calls `x.py`, which initializes
39+
# submodules, before which workspace members cannot be invoked because
40+
# not all `Cargo.toml` files are available, so we exclude the `x` binary,
41+
# so it can be invoked before the current checkout is set up.
42+
"src/tools/x",
3743
]
3844

3945
[profile.release.package.compiler_builtins]

compiler/rustc_expand/src/placeholders.rs

+9-10
Original file line numberDiff line numberDiff line change
@@ -313,25 +313,24 @@ impl<'a, 'b> MutVisitor for PlaceholderExpander<'a, 'b> {
313313
// Implement the proposal described in
314314
// https://github.com/rust-lang/rust/issues/61733#issuecomment-509626449
315315
//
316-
// The macro invocation expands to the list of statements.
317-
// If the list of statements is empty, then 'parse'
318-
// the trailing semicolon on the original invocation
319-
// as an empty statement. That is:
316+
// The macro invocation expands to the list of statements. If the
317+
// list of statements is empty, then 'parse' the trailing semicolon
318+
// on the original invocation as an empty statement. That is:
320319
//
321320
// `empty();` is parsed as a single `StmtKind::Empty`
322321
//
323-
// If the list of statements is non-empty, see if the
324-
// final statement alreayd has a trailing semicolon.
322+
// If the list of statements is non-empty, see if the final
323+
// statement already has a trailing semicolon.
325324
//
326-
// If it doesn't have a semicolon, then 'parse' the trailing semicolon
327-
// from the invocation as part of the final statement,
325+
// If it doesn't have a semicolon, then 'parse' the trailing
326+
// semicolon from the invocation as part of the final statement,
328327
// using `stmt.add_trailing_semicolon()`
329328
//
330329
// If it does have a semicolon, then 'parse' the trailing semicolon
331330
// from the invocation as a new StmtKind::Empty
332331

333-
// FIXME: We will need to preserve the original
334-
// semicolon token and span as part of #15701
332+
// FIXME: We will need to preserve the original semicolon token and
333+
// span as part of #15701
335334
let empty_stmt = ast::Stmt {
336335
id: ast::DUMMY_NODE_ID,
337336
kind: ast::StmtKind::Empty,

compiler/rustc_macros/src/type_foldable.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ pub fn type_foldable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::
1616
})
1717
});
1818

19-
let body_visit = s.fold(quote!(), |acc, bind| {
19+
let body_visit = s.each(|bind| {
2020
quote! {
21-
#acc
2221
::rustc_middle::ty::fold::TypeFoldable::visit_with(#bind, __folder)?;
2322
}
2423
});

0 commit comments

Comments
 (0)