Skip to content

Commit abf053d

Browse files
committed
Merge branch 'master' of github.com:TheSamsa/rust
2 parents 969926f + e862c01 commit abf053d

File tree

1,238 files changed

+23958
-20273
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,238 files changed

+23958
-20273
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ All pull requests are reviewed by another person. We have a bot,
150150
request.
151151

152152
If you want to request that a specific person reviews your pull request,
153-
you can add an `r?` to the message. For example, [Steve][steveklabnik] usually reviews
153+
you can add an `r?` to the pull request description. For example, [Steve][steveklabnik] usually reviews
154154
documentation changes. So if you were to make a documentation change, add
155155

156156
r? @steveklabnik
157157

158-
to the end of the message, and @rust-highfive will assign [@steveklabnik][steveklabnik] instead
159-
of a random person. This is entirely optional.
158+
to the end of the pull request description, and [@rust-highfive][rust-highfive] will assign
159+
[@steveklabnik][steveklabnik] instead of a random person. This is entirely optional.
160160

161161
After someone has reviewed your pull request, they will leave an annotation
162162
on the pull request with an `r+`. It will look something like this:

Cargo.lock

Lines changed: 53 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -466,15 +466,17 @@ dependencies = [
466466
"cargo_metadata 0.9.0",
467467
"clippy-mini-macro-test",
468468
"clippy_lints",
469-
"compiletest_rs 0.4.0",
469+
"compiletest_rs",
470470
"derive-new",
471+
"git2",
471472
"lazy_static 1.3.0",
472473
"regex",
473474
"rustc-workspace-hack",
474475
"rustc_tools_util 0.2.0",
475476
"semver",
476477
"serde",
477-
"tester 0.7.0",
478+
"tempfile",
479+
"tester",
478480
]
479481

480482
[[package]]
@@ -595,28 +597,6 @@ dependencies = [
595597
"winapi 0.3.8",
596598
]
597599

598-
[[package]]
599-
name = "compiletest_rs"
600-
version = "0.3.26"
601-
source = "registry+https://github.com/rust-lang/crates.io-index"
602-
checksum = "d7d8975604ebad8b6660796802377eb6495045c5606168fc1b8d19a4dd9bfa46"
603-
dependencies = [
604-
"diff",
605-
"filetime",
606-
"getopts",
607-
"libc",
608-
"log",
609-
"miow 0.3.3",
610-
"regex",
611-
"rustfix",
612-
"serde",
613-
"serde_derive",
614-
"serde_json",
615-
"tempfile",
616-
"tester 0.6.0",
617-
"winapi 0.3.8",
618-
]
619-
620600
[[package]]
621601
name = "compiletest_rs"
622602
version = "0.4.0"
@@ -635,7 +615,7 @@ dependencies = [
635615
"serde_derive",
636616
"serde_json",
637617
"tempfile",
638-
"tester 0.7.0",
618+
"tester",
639619
"winapi 0.3.8",
640620
]
641621

@@ -1314,7 +1294,7 @@ checksum = "473a1265acc8ff1e808cd0a1af8cee3c2ee5200916058a2ca113c29f2d903571"
13141294
dependencies = [
13151295
"cfg-if",
13161296
"libc",
1317-
"wasi",
1297+
"wasi 0.7.0",
13181298
]
13191299

13201300
[[package]]
@@ -2223,7 +2203,7 @@ dependencies = [
22232203
"byteorder",
22242204
"cargo_metadata 0.9.0",
22252205
"colored",
2226-
"compiletest_rs 0.3.26",
2206+
"compiletest_rs",
22272207
"directories",
22282208
"env_logger 0.7.1",
22292209
"getrandom",
@@ -3221,9 +3201,11 @@ dependencies = [
32213201
"rustc_data_structures",
32223202
"rustc_error_codes",
32233203
"rustc_errors",
3204+
"rustc_feature",
32243205
"rustc_fs_util",
32253206
"rustc_index",
32263207
"rustc_macros",
3208+
"rustc_session",
32273209
"rustc_target",
32283210
"scoped-tls",
32293211
"serialize",
@@ -3537,6 +3519,7 @@ dependencies = [
35373519
"rustc_fs_util",
35383520
"rustc_incremental",
35393521
"rustc_index",
3522+
"rustc_session",
35403523
"rustc_target",
35413524
"serialize",
35423525
"syntax",
@@ -3596,6 +3579,7 @@ dependencies = [
35963579
"rustc_data_structures",
35973580
"rustc_error_codes",
35983581
"rustc_errors",
3582+
"rustc_feature",
35993583
"rustc_interface",
36003584
"rustc_lint",
36013585
"rustc_metadata",
@@ -3629,6 +3613,15 @@ dependencies = [
36293613
"unicode-width",
36303614
]
36313615

3616+
[[package]]
3617+
name = "rustc_feature"
3618+
version = "0.0.0"
3619+
dependencies = [
3620+
"lazy_static 1.3.0",
3621+
"rustc_data_structures",
3622+
"syntax_pos",
3623+
]
3624+
36323625
[[package]]
36333626
name = "rustc_fs_util"
36343627
version = "0.0.0"
@@ -3643,6 +3636,7 @@ dependencies = [
36433636
"rustc",
36443637
"rustc_data_structures",
36453638
"rustc_fs_util",
3639+
"rustc_session",
36463640
"serialize",
36473641
"syntax",
36483642
"syntax_pos",
@@ -3704,7 +3698,9 @@ dependencies = [
37043698
"rustc",
37053699
"rustc_data_structures",
37063700
"rustc_error_codes",
3701+
"rustc_feature",
37073702
"rustc_index",
3703+
"rustc_session",
37083704
"rustc_target",
37093705
"syntax",
37103706
"syntax_pos",
@@ -3808,8 +3804,8 @@ dependencies = [
38083804
"rustc_data_structures",
38093805
"rustc_error_codes",
38103806
"rustc_errors",
3807+
"rustc_feature",
38113808
"rustc_lexer",
3812-
"rustc_target",
38133809
"smallvec 1.0.0",
38143810
"syntax",
38153811
"syntax_pos",
@@ -3824,6 +3820,7 @@ dependencies = [
38243820
"rustc_data_structures",
38253821
"rustc_error_codes",
38263822
"rustc_errors",
3823+
"rustc_feature",
38273824
"rustc_index",
38283825
"rustc_parse",
38293826
"rustc_target",
@@ -3866,6 +3863,7 @@ dependencies = [
38663863
"rustc_data_structures",
38673864
"rustc_error_codes",
38683865
"rustc_errors",
3866+
"rustc_feature",
38693867
"rustc_metadata",
38703868
"smallvec 1.0.0",
38713869
"syntax",
@@ -3889,6 +3887,22 @@ dependencies = [
38893887
"syntax_pos",
38903888
]
38913889

3890+
[[package]]
3891+
name = "rustc_session"
3892+
version = "0.0.0"
3893+
dependencies = [
3894+
"log",
3895+
"num_cpus",
3896+
"rustc_data_structures",
3897+
"rustc_errors",
3898+
"rustc_feature",
3899+
"rustc_fs_util",
3900+
"rustc_index",
3901+
"rustc_target",
3902+
"serialize",
3903+
"syntax_pos",
3904+
]
3905+
38923906
[[package]]
38933907
name = "rustc_target"
38943908
version = "0.0.0"
@@ -4306,7 +4320,7 @@ dependencies = [
43064320
"rustc_msan",
43074321
"rustc_tsan",
43084322
"unwind",
4309-
"wasi",
4323+
"wasi 0.9.0+wasi-snapshot-preview1",
43104324
]
43114325

43124326
[[package]]
@@ -4464,9 +4478,11 @@ dependencies = [
44644478
"rustc_data_structures",
44654479
"rustc_error_codes",
44664480
"rustc_errors",
4481+
"rustc_feature",
44674482
"rustc_index",
44684483
"rustc_lexer",
44694484
"rustc_macros",
4485+
"rustc_session",
44704486
"scoped-tls",
44714487
"serialize",
44724488
"smallvec 1.0.0",
@@ -4480,6 +4496,7 @@ dependencies = [
44804496
"log",
44814497
"rustc_data_structures",
44824498
"rustc_errors",
4499+
"rustc_feature",
44834500
"rustc_lexer",
44844501
"rustc_parse",
44854502
"serialize",
@@ -4497,6 +4514,7 @@ dependencies = [
44974514
"rustc_data_structures",
44984515
"rustc_error_codes",
44994516
"rustc_errors",
4517+
"rustc_feature",
45004518
"rustc_parse",
45014519
"rustc_target",
45024520
"smallvec 1.0.0",
@@ -4621,17 +4639,6 @@ dependencies = [
46214639
"term 0.0.0",
46224640
]
46234641

4624-
[[package]]
4625-
name = "tester"
4626-
version = "0.6.0"
4627-
source = "registry+https://github.com/rust-lang/crates.io-index"
4628-
checksum = "7647e6d732eb84375d8e7abda37818f81861ddbfc7235e33f4983cb254b71e4f"
4629-
dependencies = [
4630-
"getopts",
4631-
"libc",
4632-
"term 0.6.0",
4633-
]
4634-
46354642
[[package]]
46364643
name = "tester"
46374644
version = "0.7.0"
@@ -5185,6 +5192,12 @@ name = "wasi"
51855192
version = "0.7.0"
51865193
source = "registry+https://github.com/rust-lang/crates.io-index"
51875194
checksum = "b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d"
5195+
5196+
[[package]]
5197+
name = "wasi"
5198+
version = "0.9.0+wasi-snapshot-preview1"
5199+
source = "registry+https://github.com/rust-lang/crates.io-index"
5200+
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
51885201
dependencies = [
51895202
"compiler_builtins",
51905203
"rustc-std-workspace-alloc",

src/bootstrap/bootstrap.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ def build_bootstrap(self):
643643
env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
644644
(os.pathsep + env["LIBRARY_PATH"]) \
645645
if "LIBRARY_PATH" in env else ""
646-
env["RUSTFLAGS"] = "-Cdebuginfo=2 "
646+
# preserve existing RUSTFLAGS
647+
env.setdefault("RUSTFLAGS", "")
648+
env["RUSTFLAGS"] += " -Cdebuginfo=2"
647649

648650
build_section = "target.{}".format(self.build_triple())
649651
target_features = []
@@ -652,13 +654,13 @@ def build_bootstrap(self):
652654
elif self.get_toml("crt-static", build_section) == "false":
653655
target_features += ["-crt-static"]
654656
if target_features:
655-
env["RUSTFLAGS"] += "-C target-feature=" + (",".join(target_features)) + " "
657+
env["RUSTFLAGS"] += " -C target-feature=" + (",".join(target_features))
656658
target_linker = self.get_toml("linker", build_section)
657659
if target_linker is not None:
658-
env["RUSTFLAGS"] += "-C linker=" + target_linker + " "
659-
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes "
660+
env["RUSTFLAGS"] += " -C linker=" + target_linker
661+
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes"
660662
if self.get_toml("deny-warnings", "rust") != "false":
661-
env["RUSTFLAGS"] += "-Dwarnings "
663+
env["RUSTFLAGS"] += " -Dwarnings"
662664

663665
env["PATH"] = os.path.join(self.bin_root(), "bin") + \
664666
os.pathsep + env["PATH"]

src/bootstrap/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl Step for Std {
113113
}
114114
}
115115

116-
/// Copies third pary objects needed by various targets.
116+
/// Copies third party objects needed by various targets.
117117
fn copy_third_party_objects(builder: &Builder<'_>, compiler: &Compiler, target: Interned<String>)
118118
-> Vec<PathBuf>
119119
{

src/bootstrap/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ install!((self, builder, _config),
260260
};
261261
Rustc, "src/librustc", true, only_hosts: true, {
262262
builder.ensure(dist::Rustc {
263-
compiler: self.compiler,
263+
compiler: builder.compiler(builder.top_stage, self.target),
264264
});
265265
install_rustc(builder, self.compiler.stage, self.target);
266266
};

src/bootstrap/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ impl Build {
810810
!target.contains("emscripten") &&
811811
!target.contains("wasm32") &&
812812
!target.contains("nvptx") &&
813+
!target.contains("fortanix") &&
813814
!target.contains("fuchsia") {
814815
Some(self.cc(target))
815816
} else {

src/bootstrap/native.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ fn check_llvm_version(builder: &Builder<'_>, llvm_config: &Path) {
294294
let mut parts = version.split('.').take(2)
295295
.filter_map(|s| s.parse::<u32>().ok());
296296
if let (Some(major), Some(_minor)) = (parts.next(), parts.next()) {
297-
if major >= 6 {
297+
if major >= 7 {
298298
return
299299
}
300300
}
301-
panic!("\n\nbad LLVM version: {}, need >=6.0\n\n", version)
301+
panic!("\n\nbad LLVM version: {}, need >=7.0\n\n", version)
302302
}
303303

304304
fn configure_cmake(builder: &Builder<'_>,

src/ci/azure-pipelines/auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- template: steps/run.yml
1919
strategy:
2020
matrix:
21-
x86_64-gnu-llvm-6.0:
21+
x86_64-gnu-llvm-7:
2222
RUST_BACKTRACE: 1
2323
dist-x86_64-linux: {}
2424
dist-x86_64-linux-alt:

src/ci/azure-pipelines/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- template: steps/run.yml
1919
strategy:
2020
matrix:
21-
x86_64-gnu-llvm-6.0: {}
21+
x86_64-gnu-llvm-7: {}
2222
mingw-check: {}
2323
x86_64-gnu-tools:
2424
CI_ONLY_WHEN_SUBMODULES_CHANGED: 1

0 commit comments

Comments
 (0)