Skip to content

Commit 033013c

Browse files
committed
Auto merge of rust-lang#73528 - Manishearth:rollup-7djz8nd, r=Manishearth
Rollup of 16 pull requests Successful merges: - rust-lang#71420 (Specialization is unsound) - rust-lang#71899 (Refactor `try_find` a little) - rust-lang#72689 (add str to common types) - rust-lang#72791 (update coerce docs and unify relevant tests) - rust-lang#72934 (forbid mutable references in all constant contexts except for const-fns) - rust-lang#73027 (Make `need_type_info_err` more conservative) - rust-lang#73347 (Diagnose use of incompatible sanitizers) - rust-lang#73359 (shim.rs: avoid creating `Call` terminators calling `Self`) - rust-lang#73399 (Clean up E0668 explanation) - rust-lang#73436 (Clean up E0670 explanation) - rust-lang#73440 (Add src/librustdoc as an alias for src/tools/rustdoc) - rust-lang#73442 (pretty/mir: const value enums with no variants) - rust-lang#73452 (Unify region variables when projecting associated types) - rust-lang#73458 (Use alloc::Layout in DroplessArena API) - rust-lang#73484 (Update the doc for std::prelude to the correct behavior) - rust-lang#73506 (Bump Rustfmt and RLS) Failed merges: r? @ghost
2 parents 34c5cd9 + 3e40cca commit 033013c

File tree

275 files changed

+2547
-848
lines changed

Some content is hidden

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

275 files changed

+2547
-848
lines changed

Cargo.lock

+72-68
Original file line numberDiff line numberDiff line change
@@ -2780,9 +2780,9 @@ dependencies = [
27802780

27812781
[[package]]
27822782
name = "racer"
2783-
version = "2.1.34"
2783+
version = "2.1.35"
27842784
source = "registry+https://github.com/rust-lang/crates.io-index"
2785-
checksum = "cc9caecf1286a3ed28d3ae35207a178ba12e58de95540781e5c6cba05e0f0833"
2785+
checksum = "421174f19211ba9e5fda34aa0cbc292188aae8e0cfbff4aebbae23f1a416bfb3"
27862786
dependencies = [
27872787
"bitflags",
27882788
"clap",
@@ -3207,43 +3207,38 @@ dependencies = [
32073207
]
32083208

32093209
[[package]]
3210-
name = "rustc-ap-arena"
3211-
version = "659.0.0"
3210+
name = "rustc-ap-rustc_arena"
3211+
version = "664.0.0"
32123212
source = "registry+https://github.com/rust-lang/crates.io-index"
3213-
checksum = "fdaf0295fc40b10ec1091aad1a1760b4bb3b4e7c4f77d543d1a2e9d50a01e6b1"
3213+
checksum = "0c6683b49209f8b132bec33dc6b6c8f9958c8c94eb3586d4cb495e092b61c1da"
32143214
dependencies = [
32153215
"rustc-ap-rustc_data_structures",
32163216
"smallvec 1.4.0",
32173217
]
32183218

3219-
[[package]]
3220-
name = "rustc-ap-graphviz"
3221-
version = "659.0.0"
3222-
source = "registry+https://github.com/rust-lang/crates.io-index"
3223-
checksum = "8028e8cdb4eb71810d0c22a5a5e1e3106c81123be63ce7f044b6d4ac100d8941"
3224-
32253219
[[package]]
32263220
name = "rustc-ap-rustc_ast"
3227-
version = "659.0.0"
3221+
version = "664.0.0"
32283222
source = "registry+https://github.com/rust-lang/crates.io-index"
3229-
checksum = "16e9e502bb3a5568433db1cf2fb1f1e1074934636069cf744ad7c77b58e1428e"
3223+
checksum = "5b21784d92fb2d584800f528866f00fe814f73abda794f406bfd1fbb2f1ca7f7"
32303224
dependencies = [
3225+
"bitflags",
32313226
"log",
32323227
"rustc-ap-rustc_data_structures",
32333228
"rustc-ap-rustc_index",
32343229
"rustc-ap-rustc_lexer",
32353230
"rustc-ap-rustc_macros",
3231+
"rustc-ap-rustc_serialize",
32363232
"rustc-ap-rustc_span",
3237-
"rustc-ap-serialize",
32383233
"scoped-tls",
32393234
"smallvec 1.4.0",
32403235
]
32413236

32423237
[[package]]
32433238
name = "rustc-ap-rustc_ast_passes"
3244-
version = "659.0.0"
3239+
version = "664.0.0"
32453240
source = "registry+https://github.com/rust-lang/crates.io-index"
3246-
checksum = "faf35ffecab28f97f7ac01cf6a13afaca6408529d15eb95f317a43b2ffb88933"
3241+
checksum = "820c46fde7ef1df0432073090d775f097b7279ca75ea34ba954081ce4b884d4c"
32473242
dependencies = [
32483243
"itertools 0.8.0",
32493244
"log",
@@ -3260,38 +3255,39 @@ dependencies = [
32603255

32613256
[[package]]
32623257
name = "rustc-ap-rustc_ast_pretty"
3263-
version = "659.0.0"
3258+
version = "664.0.0"
32643259
source = "registry+https://github.com/rust-lang/crates.io-index"
3265-
checksum = "3684ed43dc552f1e030e3f7a5a300a7a834bdda4e9e00ab80284be4220d8c603"
3260+
checksum = "013db7dd198fe95962d2cefa5bd0b350cf2028af77c169b17b4baa9c3bbf77d1"
32663261
dependencies = [
32673262
"log",
32683263
"rustc-ap-rustc_ast",
32693264
"rustc-ap-rustc_span",
3265+
"rustc-ap-rustc_target",
32703266
]
32713267

32723268
[[package]]
32733269
name = "rustc-ap-rustc_attr"
3274-
version = "659.0.0"
3270+
version = "664.0.0"
32753271
source = "registry+https://github.com/rust-lang/crates.io-index"
3276-
checksum = "31b413927daa666983b3b49227f9ac218aa29254546abdb585f20cd71c391870"
3272+
checksum = "35b5a85c90eb341eec543600ffdd9e262da5ea72a73a23ae4ca2f4ab8cd1a188"
32773273
dependencies = [
32783274
"rustc-ap-rustc_ast",
32793275
"rustc-ap-rustc_ast_pretty",
32803276
"rustc-ap-rustc_data_structures",
32813277
"rustc-ap-rustc_errors",
32823278
"rustc-ap-rustc_feature",
32833279
"rustc-ap-rustc_macros",
3280+
"rustc-ap-rustc_serialize",
32843281
"rustc-ap-rustc_session",
32853282
"rustc-ap-rustc_span",
3286-
"rustc-ap-serialize",
32873283
"version_check",
32883284
]
32893285

32903286
[[package]]
32913287
name = "rustc-ap-rustc_data_structures"
3292-
version = "659.0.0"
3288+
version = "664.0.0"
32933289
source = "registry+https://github.com/rust-lang/crates.io-index"
3294-
checksum = "4b1c6069e5c522657f1c6f5ab33074e097092f48e804cc896d337e319aacbd60"
3290+
checksum = "b92e4c6cb6c43ee9031a71709dc12853b358253c2b41d12a26379994fab625e0"
32953291
dependencies = [
32963292
"bitflags",
32973293
"cfg-if",
@@ -3303,10 +3299,11 @@ dependencies = [
33033299
"libc",
33043300
"log",
33053301
"measureme",
3302+
"once_cell",
33063303
"parking_lot 0.10.2",
3307-
"rustc-ap-graphviz",
3304+
"rustc-ap-rustc_graphviz",
33083305
"rustc-ap-rustc_index",
3309-
"rustc-ap-serialize",
3306+
"rustc-ap-rustc_serialize",
33103307
"rustc-hash",
33113308
"rustc-rayon",
33123309
"rustc-rayon-core",
@@ -3318,16 +3315,16 @@ dependencies = [
33183315

33193316
[[package]]
33203317
name = "rustc-ap-rustc_errors"
3321-
version = "659.0.0"
3318+
version = "664.0.0"
33223319
source = "registry+https://github.com/rust-lang/crates.io-index"
3323-
checksum = "0c374e89b3c9714869ef86076942155383804ba6778c26be2169d324563c31f9"
3320+
checksum = "6b0aa79423260c1b9e2f856e144e040f606b0f5d43644408375becf9d7bcdf86"
33243321
dependencies = [
3325-
"annotate-snippets 0.6.1",
3322+
"annotate-snippets 0.8.0",
33263323
"atty",
33273324
"log",
33283325
"rustc-ap-rustc_data_structures",
3326+
"rustc-ap-rustc_serialize",
33293327
"rustc-ap-rustc_span",
3330-
"rustc-ap-serialize",
33313328
"termcolor",
33323329
"termize",
33333330
"unicode-width",
@@ -3336,9 +3333,9 @@ dependencies = [
33363333

33373334
[[package]]
33383335
name = "rustc-ap-rustc_expand"
3339-
version = "659.0.0"
3336+
version = "664.0.0"
33403337
source = "registry+https://github.com/rust-lang/crates.io-index"
3341-
checksum = "259d2a7aa7a12f3c99a4ce4123643ec065f1a26f8e89be1f9bedd9757ea53fdc"
3338+
checksum = "c07d76ba2a1b7d4325a2ed21d6345ccebd89ddc6666a1535a6edd489fb4cbc11"
33423339
dependencies = [
33433340
"log",
33443341
"rustc-ap-rustc_ast",
@@ -3350,17 +3347,17 @@ dependencies = [
33503347
"rustc-ap-rustc_feature",
33513348
"rustc-ap-rustc_lexer",
33523349
"rustc-ap-rustc_parse",
3350+
"rustc-ap-rustc_serialize",
33533351
"rustc-ap-rustc_session",
33543352
"rustc-ap-rustc_span",
3355-
"rustc-ap-serialize",
33563353
"smallvec 1.4.0",
33573354
]
33583355

33593356
[[package]]
33603357
name = "rustc-ap-rustc_feature"
3361-
version = "659.0.0"
3358+
version = "664.0.0"
33623359
source = "registry+https://github.com/rust-lang/crates.io-index"
3363-
checksum = "c0296fbc29b629d5ae2ebee1bbf0407bb22de04d26d87216c20899b79579ccb3"
3360+
checksum = "1bbd625705c1db42a0c7503736292813d7b76ada5da20578fb55c63228c80ab5"
33643361
dependencies = [
33653362
"lazy_static",
33663363
"rustc-ap-rustc_data_structures",
@@ -3369,34 +3366,40 @@ dependencies = [
33693366

33703367
[[package]]
33713368
name = "rustc-ap-rustc_fs_util"
3372-
version = "659.0.0"
3369+
version = "664.0.0"
33733370
source = "registry+https://github.com/rust-lang/crates.io-index"
3374-
checksum = "34734f6cc681399630acd836a14207c6b5b9671a290cc7cad0354b0a4d71b3c9"
3371+
checksum = "34cca6e2942fa0b059c582437ead666d5bcf20fa7c242599e2bbea9b609f29ae"
3372+
3373+
[[package]]
3374+
name = "rustc-ap-rustc_graphviz"
3375+
version = "664.0.0"
3376+
source = "registry+https://github.com/rust-lang/crates.io-index"
3377+
checksum = "13d6a029b81f5e02da85763f82c135507f278a4a0c776432c728520563059529"
33753378

33763379
[[package]]
33773380
name = "rustc-ap-rustc_index"
3378-
version = "659.0.0"
3381+
version = "664.0.0"
33793382
source = "registry+https://github.com/rust-lang/crates.io-index"
3380-
checksum = "d1e4508753d71d3523209c2ca5086db15a1413e71ebf17ad5412bb7ced5e44c2"
3383+
checksum = "bae50852d303e230b2781c994513788136dc6c2fe4ebe032959f0b990a425767"
33813384
dependencies = [
3382-
"rustc-ap-serialize",
3385+
"rustc-ap-rustc_serialize",
33833386
"smallvec 1.4.0",
33843387
]
33853388

33863389
[[package]]
33873390
name = "rustc-ap-rustc_lexer"
3388-
version = "659.0.0"
3391+
version = "664.0.0"
33893392
source = "registry+https://github.com/rust-lang/crates.io-index"
3390-
checksum = "42b9fcd8407e322908a721262fbc0b35b5f3c35bb173a26dd1e0070bde336e33"
3393+
checksum = "b7186e74aa2d31bf0e2454325fefcdf0a3da77d9344134592144b9e40d45b15d"
33913394
dependencies = [
33923395
"unicode-xid 0.2.0",
33933396
]
33943397

33953398
[[package]]
33963399
name = "rustc-ap-rustc_macros"
3397-
version = "659.0.0"
3400+
version = "664.0.0"
33983401
source = "registry+https://github.com/rust-lang/crates.io-index"
3399-
checksum = "3d104115a689367d2e0bcd99f37e0ebd6b9c8c78bab0d9cbea5bae86323601b5"
3402+
checksum = "4fc1add04e9d2301164118660ee0bc3266e9a7b1973fc2303fdbe002a12e5401"
34003403
dependencies = [
34013404
"proc-macro2 1.0.3",
34023405
"quote 1.0.2",
@@ -3406,9 +3409,9 @@ dependencies = [
34063409

34073410
[[package]]
34083411
name = "rustc-ap-rustc_parse"
3409-
version = "659.0.0"
3412+
version = "664.0.0"
34103413
source = "registry+https://github.com/rust-lang/crates.io-index"
3411-
checksum = "afaaab91853fc5a3916785ccae727a4433359d9787c260d42b96a2265fe5b287"
3414+
checksum = "9cd7fc4968bd60084f2fa4f280fa450b0cf98660a7983d6b93a7ae41b6d1d322"
34123415
dependencies = [
34133416
"bitflags",
34143417
"log",
@@ -3423,11 +3426,21 @@ dependencies = [
34233426
"unicode-normalization",
34243427
]
34253428

3429+
[[package]]
3430+
name = "rustc-ap-rustc_serialize"
3431+
version = "664.0.0"
3432+
source = "registry+https://github.com/rust-lang/crates.io-index"
3433+
checksum = "00bf4c110271d9a2b7dfd2c6eb82e56fd80606a8bad6c102e158c54e44044046"
3434+
dependencies = [
3435+
"indexmap",
3436+
"smallvec 1.4.0",
3437+
]
3438+
34263439
[[package]]
34273440
name = "rustc-ap-rustc_session"
3428-
version = "659.0.0"
3441+
version = "664.0.0"
34293442
source = "registry+https://github.com/rust-lang/crates.io-index"
3430-
checksum = "86e756a57ce6ce1b868e35e64a7e10ab28d49ece80d7c661b07aff5afc6e5d2d"
3443+
checksum = "431cf962de71d4c03fb877d54f331ec36eca77350b0539017abc40a4410d6501"
34313444
dependencies = [
34323445
"getopts",
34333446
"log",
@@ -3437,54 +3450,43 @@ dependencies = [
34373450
"rustc-ap-rustc_errors",
34383451
"rustc-ap-rustc_feature",
34393452
"rustc-ap-rustc_fs_util",
3440-
"rustc-ap-rustc_index",
3453+
"rustc-ap-rustc_serialize",
34413454
"rustc-ap-rustc_span",
34423455
"rustc-ap-rustc_target",
3443-
"rustc-ap-serialize",
34443456
]
34453457

34463458
[[package]]
34473459
name = "rustc-ap-rustc_span"
3448-
version = "659.0.0"
3460+
version = "664.0.0"
34493461
source = "registry+https://github.com/rust-lang/crates.io-index"
3450-
checksum = "21031c3396ee452f4c6e994b67513a633055c57c86d00336afd9d63149518f34"
3462+
checksum = "b912039640597624f4bcb75f1e1fcfa5710267d715a7f73a6336baef341b23d1"
34513463
dependencies = [
34523464
"cfg-if",
34533465
"log",
34543466
"md-5",
3455-
"rustc-ap-arena",
3467+
"rustc-ap-rustc_arena",
34563468
"rustc-ap-rustc_data_structures",
34573469
"rustc-ap-rustc_index",
34583470
"rustc-ap-rustc_macros",
3459-
"rustc-ap-serialize",
3471+
"rustc-ap-rustc_serialize",
34603472
"scoped-tls",
34613473
"sha-1",
34623474
"unicode-width",
34633475
]
34643476

34653477
[[package]]
34663478
name = "rustc-ap-rustc_target"
3467-
version = "659.0.0"
3479+
version = "664.0.0"
34683480
source = "registry+https://github.com/rust-lang/crates.io-index"
3469-
checksum = "ff21badfbead5b0050391eaad8840f2e4fcb03b6b0fc6006f447443529e9ae6e"
3481+
checksum = "51347a9dadc5ad0b5916cc12d42624b31955285ad13745dbe72f0140038b84e9"
34703482
dependencies = [
34713483
"bitflags",
34723484
"log",
34733485
"rustc-ap-rustc_data_structures",
34743486
"rustc-ap-rustc_index",
34753487
"rustc-ap-rustc_macros",
3488+
"rustc-ap-rustc_serialize",
34763489
"rustc-ap-rustc_span",
3477-
"rustc-ap-serialize",
3478-
]
3479-
3480-
[[package]]
3481-
name = "rustc-ap-serialize"
3482-
version = "659.0.0"
3483-
source = "registry+https://github.com/rust-lang/crates.io-index"
3484-
checksum = "768b5a305669d934522712bc13502962edfde5128ea63b9e7db4000410be1dc6"
3485-
dependencies = [
3486-
"indexmap",
3487-
"smallvec 1.4.0",
34883490
]
34893491

34903492
[[package]]
@@ -4278,6 +4280,7 @@ dependencies = [
42784280
name = "rustc_session"
42794281
version = "0.0.0"
42804282
dependencies = [
4283+
"bitflags",
42814284
"getopts",
42824285
"log",
42834286
"num_cpus",
@@ -4481,16 +4484,16 @@ dependencies = [
44814484

44824485
[[package]]
44834486
name = "rustfmt-nightly"
4484-
version = "1.4.15"
4487+
version = "1.4.18"
44854488
dependencies = [
44864489
"annotate-snippets 0.6.1",
4490+
"anyhow",
44874491
"bytecount",
44884492
"cargo_metadata 0.8.0",
44894493
"derive-new",
44904494
"diff",
44914495
"dirs",
44924496
"env_logger 0.6.2",
4493-
"failure",
44944497
"getopts",
44954498
"ignore",
44964499
"itertools 0.8.0",
@@ -4512,6 +4515,7 @@ dependencies = [
45124515
"serde_json",
45134516
"structopt",
45144517
"term 0.6.0",
4518+
"thiserror",
45154519
"toml",
45164520
"unicode-segmentation",
45174521
"unicode-width",

src/bootstrap/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl Step for Rustdoc {
481481
const ONLY_HOSTS: bool = true;
482482

483483
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
484-
run.path("src/tools/rustdoc")
484+
run.path("src/tools/rustdoc").path("src/librustdoc")
485485
}
486486

487487
fn make_run(run: RunConfig<'_>) {

src/doc/unstable-book/src/compiler-flags/sanitizer.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ This feature allows for use of one of following sanitizers:
1212
* [ThreadSanitizer][clang-tsan] a fast data race detector.
1313

1414
To enable a sanitizer compile with `-Zsanitizer=address`, `-Zsanitizer=leak`,
15-
`-Zsanitizer=memory` or `-Zsanitizer=thread`. Only a single sanitizer can be
16-
enabled at a time.
15+
`-Zsanitizer=memory` or `-Zsanitizer=thread`.
1716

1817
# AddressSanitizer
1918

0 commit comments

Comments
 (0)