Skip to content

Commit 8871731

Browse files
committed
Merge remote-tracking branch 'rust-lang/master' into hermit
2 parents 969b741 + 4f03f4a commit 8871731

File tree

1,546 files changed

+11336
-9589
lines changed

Some content is hidden

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

1,546 files changed

+11336
-9589
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ contributions to the compiler and the standard library. It also lists some
105105
really useful commands to the build system (`./x.py`), which could save you a
106106
lot of time.
107107

108-
[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html
108+
[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/building/how-to-build-and-run.html
109109

110110
## Pull Requests
111111
[pull-requests]: #pull-requests

Cargo.lock

+60-37
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ name = "arena"
6868
version = "0.0.0"
6969
dependencies = [
7070
"rustc_data_structures",
71-
"smallvec",
71+
"smallvec 1.0.0",
7272
]
7373

7474
[[package]]
@@ -208,6 +208,7 @@ name = "build-manifest"
208208
version = "0.1.0"
209209
dependencies = [
210210
"serde",
211+
"serde_json",
211212
"toml",
212213
]
213214

@@ -486,7 +487,7 @@ dependencies = [
486487
"regex-syntax",
487488
"semver",
488489
"serde",
489-
"smallvec",
490+
"smallvec 1.0.0",
490491
"toml",
491492
"unicode-normalization",
492493
"url 2.1.0",
@@ -654,7 +655,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
654655
checksum = "0f0ed1a4de2235cabda8558ff5840bffb97fcb64c97827f354a451307df5f72b"
655656
dependencies = [
656657
"crossbeam-utils 0.6.5",
657-
"smallvec",
658+
"smallvec 0.6.10",
658659
]
659660

660661
[[package]]
@@ -2251,9 +2252,9 @@ dependencies = [
22512252

22522253
[[package]]
22532254
name = "openssl"
2254-
version = "0.10.16"
2255+
version = "0.10.25"
22552256
source = "registry+https://github.com/rust-lang/crates.io-index"
2256-
checksum = "ec7bd7ca4cce6dbdc77e7c1230682740d307d1218a87fb0349a571272be749f9"
2257+
checksum = "2f372b2b53ce10fb823a337aaa674e3a7d072b957c6264d0f4ff0bd86e657449"
22572258
dependencies = [
22582259
"bitflags",
22592260
"cfg-if",
@@ -2280,15 +2281,15 @@ dependencies = [
22802281

22812282
[[package]]
22822283
name = "openssl-sys"
2283-
version = "0.9.43"
2284+
version = "0.9.52"
22842285
source = "registry+https://github.com/rust-lang/crates.io-index"
2285-
checksum = "33c86834957dd5b915623e94f2f4ab2c70dd8f6b70679824155d5ae21dbd495d"
2286+
checksum = "c977d08e1312e2f7e4b86f9ebaa0ed3b19d1daff75fae88bbb88108afbd801fc"
22862287
dependencies = [
2288+
"autocfg",
22872289
"cc",
22882290
"libc",
22892291
"openssl-src",
22902292
"pkg-config",
2291-
"rustc_version",
22922293
"vcpkg",
22932294
]
22942295

@@ -2391,7 +2392,7 @@ dependencies = [
23912392
"libc",
23922393
"rand 0.6.1",
23932394
"rustc_version",
2394-
"smallvec",
2395+
"smallvec 0.6.10",
23952396
"winapi 0.3.6",
23962397
]
23972398

@@ -2406,7 +2407,7 @@ dependencies = [
24062407
"libc",
24072408
"redox_syscall",
24082409
"rustc_version",
2409-
"smallvec",
2410+
"smallvec 0.6.10",
24102411
"winapi 0.3.6",
24112412
]
24122413

@@ -3134,7 +3135,7 @@ dependencies = [
31343135
"rustc_target",
31353136
"scoped-tls",
31363137
"serialize",
3137-
"smallvec",
3138+
"smallvec 1.0.0",
31383139
"syntax",
31393140
"syntax_pos",
31403141
]
@@ -3146,7 +3147,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
31463147
checksum = "a623fd4805842e9bd0bb6e6dace63efede0ee22de4522a0b03b7c3d15a22f009"
31473148
dependencies = [
31483149
"rustc-ap-rustc_data_structures",
3149-
"smallvec",
3150+
"smallvec 0.6.10",
31503151
]
31513152

31523153
[[package]]
@@ -3175,7 +3176,7 @@ dependencies = [
31753176
"rustc-hash",
31763177
"rustc-rayon 0.2.0",
31773178
"rustc-rayon-core 0.2.0",
3178-
"smallvec",
3179+
"smallvec 0.6.10",
31793180
"stable_deref_trait",
31803181
]
31813182

@@ -3203,7 +3204,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32033204
checksum = "457a5c204ae2fdaa5bdb5b196e58ca59896870d80445fe423063c9453496e3ea"
32043205
dependencies = [
32053206
"rustc-ap-serialize",
3206-
"smallvec",
3207+
"smallvec 0.6.10",
32073208
]
32083209

32093210
[[package]]
@@ -3249,7 +3250,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32493250
checksum = "92679240e86f4583cc05f8dcf6439bdab87bac9e6555718469176de9bd52ba20"
32503251
dependencies = [
32513252
"indexmap",
3252-
"smallvec",
3253+
"smallvec 0.6.10",
32533254
]
32543255

32553256
[[package]]
@@ -3269,7 +3270,7 @@ dependencies = [
32693270
"rustc-ap-serialize",
32703271
"rustc-ap-syntax_pos",
32713272
"scoped-tls",
3272-
"smallvec",
3273+
"smallvec 0.6.10",
32733274
]
32743275

32753276
[[package]]
@@ -3392,7 +3393,7 @@ dependencies = [
33923393
"crossbeam-utils 0.6.5",
33933394
"serde",
33943395
"serde_json",
3395-
"smallvec",
3396+
"smallvec 0.6.10",
33963397
"syn 0.15.35",
33973398
"url 2.1.0",
33983399
"winapi 0.3.6",
@@ -3403,7 +3404,7 @@ name = "rustc_apfloat"
34033404
version = "0.0.0"
34043405
dependencies = [
34053406
"bitflags",
3406-
"smallvec",
3407+
"smallvec 1.0.0",
34073408
]
34083409

34093410
[[package]]
@@ -3483,7 +3484,7 @@ dependencies = [
34833484
"rustc-rayon-core 0.3.0",
34843485
"rustc_index",
34853486
"serialize",
3486-
"smallvec",
3487+
"smallvec 1.0.0",
34873488
"stable_deref_trait",
34883489
]
34893490

@@ -3503,8 +3504,10 @@ dependencies = [
35033504
"rustc_lint",
35043505
"rustc_metadata",
35053506
"rustc_mir",
3507+
"rustc_parse",
35063508
"rustc_plugin",
35073509
"rustc_plugin_impl",
3510+
"rustc_resolve",
35083511
"rustc_save_analysis",
35093512
"rustc_target",
35103513
"serialize",
@@ -3551,7 +3554,7 @@ name = "rustc_index"
35513554
version = "0.0.0"
35523555
dependencies = [
35533556
"serialize",
3554-
"smallvec",
3557+
"smallvec 1.0.0",
35553558
]
35563559

35573560
[[package]]
@@ -3570,6 +3573,7 @@ dependencies = [
35703573
"rustc_lint",
35713574
"rustc_metadata",
35723575
"rustc_mir",
3576+
"rustc_parse",
35733577
"rustc_passes",
35743578
"rustc_plugin_impl",
35753579
"rustc_privacy",
@@ -3578,7 +3582,7 @@ dependencies = [
35783582
"rustc_traits",
35793583
"rustc_typeck",
35803584
"serialize",
3581-
"smallvec",
3585+
"smallvec 1.0.0",
35823586
"syntax",
35833587
"syntax_expand",
35843588
"syntax_ext",
@@ -3647,9 +3651,10 @@ dependencies = [
36473651
"rustc_data_structures",
36483652
"rustc_errors",
36493653
"rustc_index",
3654+
"rustc_parse",
36503655
"rustc_target",
36513656
"serialize",
3652-
"smallvec",
3657+
"smallvec 1.0.0",
36533658
"stable_deref_trait",
36543659
"syntax",
36553660
"syntax_expand",
@@ -3674,7 +3679,7 @@ dependencies = [
36743679
"rustc_lexer",
36753680
"rustc_target",
36763681
"serialize",
3677-
"smallvec",
3682+
"smallvec 1.0.0",
36783683
"syntax",
36793684
"syntax_pos",
36803685
]
@@ -3690,6 +3695,21 @@ dependencies = [
36903695
"core",
36913696
]
36923697

3698+
[[package]]
3699+
name = "rustc_parse"
3700+
version = "0.0.0"
3701+
dependencies = [
3702+
"bitflags",
3703+
"log",
3704+
"rustc_data_structures",
3705+
"rustc_errors",
3706+
"rustc_lexer",
3707+
"rustc_target",
3708+
"smallvec 1.0.0",
3709+
"syntax",
3710+
"syntax_pos",
3711+
]
3712+
36933713
[[package]]
36943714
name = "rustc_passes"
36953715
version = "0.0.0"
@@ -3699,6 +3719,7 @@ dependencies = [
36993719
"rustc_data_structures",
37003720
"rustc_errors",
37013721
"rustc_index",
3722+
"rustc_parse",
37023723
"rustc_target",
37033724
"syntax",
37043725
"syntax_pos",
@@ -3745,7 +3766,7 @@ dependencies = [
37453766
"rustc_data_structures",
37463767
"rustc_errors",
37473768
"rustc_metadata",
3748-
"smallvec",
3769+
"smallvec 1.0.0",
37493770
"syntax",
37503771
"syntax_expand",
37513772
"syntax_pos",
@@ -3761,7 +3782,7 @@ dependencies = [
37613782
"rustc",
37623783
"rustc_codegen_utils",
37633784
"rustc_data_structures",
3764-
"rustc_target",
3785+
"rustc_parse",
37653786
"serde_json",
37663787
"syntax",
37673788
"syntax_pos",
@@ -3798,7 +3819,7 @@ dependencies = [
37983819
"rustc",
37993820
"rustc_data_structures",
38003821
"rustc_target",
3801-
"smallvec",
3822+
"smallvec 1.0.0",
38023823
"syntax",
38033824
"syntax_pos",
38043825
]
@@ -3825,7 +3846,7 @@ dependencies = [
38253846
"rustc_errors",
38263847
"rustc_index",
38273848
"rustc_target",
3828-
"smallvec",
3849+
"smallvec 1.0.0",
38293850
"syntax",
38303851
"syntax_pos",
38313852
]
@@ -4069,7 +4090,7 @@ name = "serialize"
40694090
version = "0.0.0"
40704091
dependencies = [
40714092
"indexmap",
4072-
"smallvec",
4093+
"smallvec 1.0.0",
40734094
]
40744095

40754096
[[package]]
@@ -4133,6 +4154,12 @@ version = "0.6.10"
41334154
source = "registry+https://github.com/rust-lang/crates.io-index"
41344155
checksum = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"
41354156

4157+
[[package]]
4158+
name = "smallvec"
4159+
version = "1.0.0"
4160+
source = "registry+https://github.com/rust-lang/crates.io-index"
4161+
checksum = "4ecf3b85f68e8abaa7555aa5abdb1153079387e60b718283d732f03897fcfc86"
4162+
41364163
[[package]]
41374164
name = "socket2"
41384165
version = "0.3.8"
@@ -4355,28 +4382,23 @@ dependencies = [
43554382
"rustc_errors",
43564383
"rustc_index",
43574384
"rustc_lexer",
4358-
"rustc_target",
43594385
"scoped-tls",
43604386
"serialize",
4361-
"smallvec",
4387+
"smallvec 1.0.0",
43624388
"syntax_pos",
43634389
]
43644390

43654391
[[package]]
43664392
name = "syntax_expand"
43674393
version = "0.0.0"
43684394
dependencies = [
4369-
"bitflags",
4370-
"lazy_static 1.3.0",
43714395
"log",
43724396
"rustc_data_structures",
43734397
"rustc_errors",
4374-
"rustc_index",
43754398
"rustc_lexer",
4376-
"rustc_target",
4377-
"scoped-tls",
4399+
"rustc_parse",
43784400
"serialize",
4379-
"smallvec",
4401+
"smallvec 1.0.0",
43804402
"syntax",
43814403
"syntax_pos",
43824404
]
@@ -4389,8 +4411,9 @@ dependencies = [
43894411
"log",
43904412
"rustc_data_structures",
43914413
"rustc_errors",
4414+
"rustc_parse",
43924415
"rustc_target",
4393-
"smallvec",
4416+
"smallvec 1.0.0",
43944417
"syntax",
43954418
"syntax_expand",
43964419
"syntax_pos",

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Rust build system has a Python script called `x.py` to bootstrap building
2121
the compiler. More information about it may be found by running `./x.py --help`
2222
or reading the [rustc guide][rustcguidebuild].
2323

24-
[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html
24+
[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/building/how-to-build-and-run.html
2525

2626
### Building on *nix
2727
1. Make sure you have installed the dependencies:

src/bootstrap/flags.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,12 @@ Arguments:
448448

449449
Flags {
450450
verbose: matches.opt_count("verbose"),
451-
stage: matches.opt_str("stage").map(|j| j.parse().unwrap()),
451+
stage: matches.opt_str("stage").map(|j| j.parse().expect("`stage` should be a number")),
452452
dry_run: matches.opt_present("dry-run"),
453453
on_fail: matches.opt_str("on-fail"),
454454
rustc_error_format: matches.opt_str("error-format"),
455455
keep_stage: matches.opt_strs("keep-stage")
456-
.into_iter().map(|j| j.parse().unwrap())
456+
.into_iter().map(|j| j.parse().expect("`keep-stage` should be a number"))
457457
.collect(),
458458
host: split(&matches.opt_strs("host"))
459459
.into_iter()
@@ -464,7 +464,7 @@ Arguments:
464464
.map(|x| INTERNER.intern_string(x))
465465
.collect::<Vec<_>>(),
466466
config: cfg_file,
467-
jobs: matches.opt_str("jobs").map(|j| j.parse().unwrap()),
467+
jobs: matches.opt_str("jobs").map(|j| j.parse().expect("`jobs` should be a number")),
468468
cmd,
469469
incremental: matches.opt_present("incremental"),
470470
exclude: split(&matches.opt_strs("exclude"))

0 commit comments

Comments
 (0)