Skip to content

Commit 2f311b0

Browse files
committed
Merge branch 'master' into issue-69276
2 parents 8841ede + d79f1bd commit 2f311b0

File tree

589 files changed

+7965
-3081
lines changed

Some content is hidden

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

589 files changed

+7965
-3081
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
CI_JOB_NAME: "${{ matrix.name }}"
3535
SCCACHE_BUCKET: rust-lang-gha-caches
3636
TOOLSTATE_REPO: "https://github.com/pietroalbini/rust-toolstate"
37+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
3738
if: "github.event_name == 'pull_request'"
3839
strategy:
3940
matrix:
@@ -146,6 +147,7 @@ jobs:
146147
TOOLSTATE_PUBLISH: 1
147148
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
148149
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
150+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
149151
if: "github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
150152
strategy:
151153
matrix:
@@ -255,6 +257,7 @@ jobs:
255257
TOOLSTATE_PUBLISH: 1
256258
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
257259
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
260+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
258261
if: "github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
259262
strategy:
260263
matrix:
@@ -606,6 +609,7 @@ jobs:
606609
TOOLSTATE_PUBLISH: 1
607610
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
608611
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
612+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
609613
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
610614
steps:
611615
- name: checkout the source code

Cargo.lock

+33-58
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ dependencies = [
438438
"proc-macro2 1.0.3",
439439
"quote 1.0.2",
440440
"syn 1.0.11",
441-
"synstructure 0.12.1",
441+
"synstructure",
442442
]
443443

444444
[[package]]
@@ -537,7 +537,6 @@ dependencies = [
537537
"compiletest_rs",
538538
"derive-new",
539539
"lazy_static 1.4.0",
540-
"regex",
541540
"rustc-workspace-hack",
542541
"rustc_tools_util 0.2.0",
543542
"semver",
@@ -938,13 +937,13 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
938937

939938
[[package]]
940939
name = "derive-new"
941-
version = "0.5.6"
940+
version = "0.5.8"
942941
source = "registry+https://github.com/rust-lang/crates.io-index"
943-
checksum = "6ca414e896ae072546f4d789f452daaecf60ddee4c9df5dc6d5936d769e3d87c"
942+
checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
944943
dependencies = [
945-
"proc-macro2 0.4.30",
946-
"quote 0.6.12",
947-
"syn 0.15.35",
944+
"proc-macro2 1.0.3",
945+
"quote 1.0.2",
946+
"syn 1.0.11",
948947
]
949948

950949
[[package]]
@@ -1145,14 +1144,14 @@ dependencies = [
11451144

11461145
[[package]]
11471146
name = "failure_derive"
1148-
version = "0.1.5"
1147+
version = "0.1.8"
11491148
source = "registry+https://github.com/rust-lang/crates.io-index"
1150-
checksum = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1"
1149+
checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
11511150
dependencies = [
1152-
"proc-macro2 0.4.30",
1153-
"quote 0.6.12",
1154-
"syn 0.15.35",
1155-
"synstructure 0.10.2",
1151+
"proc-macro2 1.0.3",
1152+
"quote 1.0.2",
1153+
"syn 1.0.11",
1154+
"synstructure",
11561155
]
11571156

11581157
[[package]]
@@ -1405,30 +1404,18 @@ dependencies = [
14051404

14061405
[[package]]
14071406
name = "handlebars"
1408-
version = "2.0.1"
1407+
version = "3.0.1"
14091408
source = "registry+https://github.com/rust-lang/crates.io-index"
1410-
checksum = "df044dd42cdb7e32f28557b661406fc0f2494be75199779998810dbc35030e0d"
1409+
checksum = "ba758d094d31274eb49d15da6f326b96bf3185239a6359bf684f3d5321148900"
14111410
dependencies = [
1412-
"hashbrown 0.5.0",
1413-
"lazy_static 1.4.0",
14141411
"log",
14151412
"pest",
14161413
"pest_derive",
14171414
"quick-error",
1418-
"regex",
14191415
"serde",
14201416
"serde_json",
14211417
]
14221418

1423-
[[package]]
1424-
name = "hashbrown"
1425-
version = "0.5.0"
1426-
source = "registry+https://github.com/rust-lang/crates.io-index"
1427-
checksum = "e1de41fb8dba9714efd92241565cdff73f78508c95697dd56787d3cba27e2353"
1428-
dependencies = [
1429-
"serde",
1430-
]
1431-
14321419
[[package]]
14331420
name = "hashbrown"
14341421
version = "0.6.2"
@@ -2055,9 +2042,9 @@ dependencies = [
20552042

20562043
[[package]]
20572044
name = "mdbook"
2058-
version = "0.3.5"
2045+
version = "0.3.7"
20592046
source = "registry+https://github.com/rust-lang/crates.io-index"
2060-
checksum = "031bdd9d4893c983e2f69ebc4b59070feee8276a584c4aabdcb351235ea28016"
2047+
checksum = "e7ec525f7ebccc2dd935c263717250cd37f9a4b264a77c5dbc950ea2734d8159"
20612048
dependencies = [
20622049
"ammonia",
20632050
"chrono",
@@ -2557,15 +2544,15 @@ dependencies = [
25572544

25582545
[[package]]
25592546
name = "pest_generator"
2560-
version = "2.1.0"
2547+
version = "2.1.3"
25612548
source = "registry+https://github.com/rust-lang/crates.io-index"
2562-
checksum = "63120576c4efd69615b5537d3d052257328a4ca82876771d6944424ccfd9f646"
2549+
checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55"
25632550
dependencies = [
25642551
"pest",
25652552
"pest_meta",
2566-
"proc-macro2 0.4.30",
2567-
"quote 0.6.12",
2568-
"syn 0.15.35",
2553+
"proc-macro2 1.0.3",
2554+
"quote 1.0.2",
2555+
"syn 1.0.11",
25692556
]
25702557

25712558
[[package]]
@@ -2785,9 +2772,9 @@ checksum = "6ddd112cca70a4d30883b2d21568a1d376ff8be4758649f64f973c6845128ad3"
27852772

27862773
[[package]]
27872774
name = "quick-error"
2788-
version = "1.2.2"
2775+
version = "1.2.3"
27892776
source = "registry+https://github.com/rust-lang/crates.io-index"
2790-
checksum = "9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0"
2777+
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
27912778

27922779
[[package]]
27932780
name = "quine-mc_cluskey"
@@ -3449,7 +3436,7 @@ dependencies = [
34493436
"proc-macro2 1.0.3",
34503437
"quote 1.0.2",
34513438
"syn 1.0.11",
3452-
"synstructure 0.12.1",
3439+
"synstructure",
34533440
]
34543441

34553442
[[package]]
@@ -4059,7 +4046,7 @@ dependencies = [
40594046
"proc-macro2 1.0.3",
40604047
"quote 1.0.2",
40614048
"syn 1.0.11",
4062-
"synstructure 0.12.1",
4049+
"synstructure",
40634050
]
40644051

40654052
[[package]]
@@ -4630,13 +4617,13 @@ dependencies = [
46304617

46314618
[[package]]
46324619
name = "serde_derive"
4633-
version = "1.0.81"
4620+
version = "1.0.106"
46344621
source = "registry+https://github.com/rust-lang/crates.io-index"
4635-
checksum = "477b13b646f5b5b56fc95bedfc3b550d12141ce84f466f6c44b9a17589923885"
4622+
checksum = "9e549e3abf4fb8621bd1609f11dfc9f5e50320802273b12f3811a67e6716ea6c"
46364623
dependencies = [
4637-
"proc-macro2 0.4.30",
4638-
"quote 0.6.12",
4639-
"syn 0.15.35",
4624+
"proc-macro2 1.0.3",
4625+
"quote 1.0.2",
4626+
"syn 1.0.11",
46404627
]
46414628

46424629
[[package]]
@@ -4778,9 +4765,9 @@ checksum = "ffbc596e092fe5f598b12ef46cc03754085ac2f4d8c739ad61c4ae266cc3b3fa"
47784765

47794766
[[package]]
47804767
name = "stacker"
4781-
version = "0.1.8"
4768+
version = "0.1.9"
47824769
source = "registry+https://github.com/rust-lang/crates.io-index"
4783-
checksum = "32c2467b8abbb417e4e62fd62229719b9c9d77714a7fa989f1afad16ba9c9743"
4770+
checksum = "72dd941b456e1c006d6b9f27c526d5b69281288aeea8cba82c19d3843d8ccdd2"
47844771
dependencies = [
47854772
"cc",
47864773
"cfg-if",
@@ -4800,7 +4787,7 @@ dependencies = [
48004787
"core",
48014788
"dlmalloc",
48024789
"fortanix-sgx-abi",
4803-
"hashbrown 0.6.2",
4790+
"hashbrown",
48044791
"hermit-abi",
48054792
"libc",
48064793
"panic_abort",
@@ -4932,18 +4919,6 @@ dependencies = [
49324919
"unicode-xid 0.2.0",
49334920
]
49344921

4935-
[[package]]
4936-
name = "synstructure"
4937-
version = "0.10.2"
4938-
source = "registry+https://github.com/rust-lang/crates.io-index"
4939-
checksum = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f"
4940-
dependencies = [
4941-
"proc-macro2 0.4.30",
4942-
"quote 0.6.12",
4943-
"syn 0.15.35",
4944-
"unicode-xid 0.1.0",
4945-
]
4946-
49474922
[[package]]
49484923
name = "synstructure"
49494924
version = "0.12.1"

config.toml.example

+4-4
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@
314314
# library.
315315
#debug-assertions = false
316316

317+
# Whether or not debug assertions are enabled for the standard library.
318+
# Overrides the `debug-assertions` option, if defined.
319+
#debug-assertions-std = false
320+
317321
# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
318322
# `0` - no debug info
319323
# `1` - line tables only
@@ -411,10 +415,6 @@
411415
# sysroot.
412416
#llvm-tools = false
413417

414-
# Indicates whether LLDB will be made available in the sysroot.
415-
# This is only built if LLVM is also being built.
416-
#lldb = false
417-
418418
# Whether to deny warnings in crates
419419
#deny-warnings = true
420420

src/bootstrap/bootstrap.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,16 @@ def format_build_time(duration):
180180
def default_build_triple():
181181
"""Build triple as in LLVM"""
182182
default_encoding = sys.getdefaultencoding()
183-
required = not sys.platform == 'win32'
184-
ostype = require(["uname", "-s"], exit=required).decode(default_encoding)
185-
cputype = require(['uname', '-m'], exit=required).decode(default_encoding)
183+
required = sys.platform != 'win32'
184+
ostype = require(["uname", "-s"], exit=required)
185+
cputype = require(['uname', '-m'], exit=required)
186186

187187
if ostype is None or cputype is None:
188188
return 'x86_64-pc-windows-msvc'
189189

190+
ostype = ostype.decode(default_encoding)
191+
cputype = cputype.decode(default_encoding)
192+
190193
# The goal here is to come up with the same triple as LLVM would,
191194
# at least for the subset of platforms we're willing to target.
192195
ostype_mapper = {

src/bootstrap/builder.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ impl<'a> Builder<'a> {
439439
dist::Clippy,
440440
dist::Miri,
441441
dist::LlvmTools,
442-
dist::Lldb,
443442
dist::Extended,
444443
dist::HashSign
445444
),
@@ -916,7 +915,14 @@ impl<'a> Builder<'a> {
916915
.env("RUSTC", self.out.join("bootstrap/debug/rustc"))
917916
.env("RUSTC_REAL", self.rustc(compiler))
918917
.env("RUSTC_STAGE", stage.to_string())
919-
.env("RUSTC_DEBUG_ASSERTIONS", self.config.rust_debug_assertions.to_string())
918+
.env(
919+
"RUSTC_DEBUG_ASSERTIONS",
920+
if mode == Mode::Std {
921+
self.config.rust_debug_assertions_std.to_string()
922+
} else {
923+
self.config.rust_debug_assertions.to_string()
924+
},
925+
)
920926
.env("RUSTC_SYSROOT", &sysroot)
921927
.env("RUSTC_LIBDIR", &libdir)
922928
.env("RUSTDOC", self.out.join("bootstrap/debug/rustdoc"))

src/bootstrap/config.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ pub struct Config {
8585

8686
pub use_lld: bool,
8787
pub lld_enabled: bool,
88-
pub lldb_enabled: bool,
8988
pub llvm_tools_enabled: bool,
9089

9190
pub llvm_cflags: Option<String>,
@@ -98,6 +97,7 @@ pub struct Config {
9897
pub rust_codegen_units: Option<u32>,
9998
pub rust_codegen_units_std: Option<u32>,
10099
pub rust_debug_assertions: bool,
100+
pub rust_debug_assertions_std: bool,
101101
pub rust_debuginfo_level_rustc: u32,
102102
pub rust_debuginfo_level_std: u32,
103103
pub rust_debuginfo_level_tools: u32,
@@ -315,6 +315,7 @@ struct Rust {
315315
codegen_units: Option<u32>,
316316
codegen_units_std: Option<u32>,
317317
debug_assertions: Option<bool>,
318+
debug_assertions_std: Option<bool>,
318319
debuginfo_level: Option<u32>,
319320
debuginfo_level_rustc: Option<u32>,
320321
debuginfo_level_std: Option<u32>,
@@ -337,7 +338,6 @@ struct Rust {
337338
lld: Option<bool>,
338339
use_lld: Option<bool>,
339340
llvm_tools: Option<bool>,
340-
lldb: Option<bool>,
341341
deny_warnings: Option<bool>,
342342
backtrace_on_ice: Option<bool>,
343343
verify_llvm_ir: Option<bool>,
@@ -520,6 +520,7 @@ impl Config {
520520
let mut llvm_assertions = None;
521521
let mut debug = None;
522522
let mut debug_assertions = None;
523+
let mut debug_assertions_std = None;
523524
let mut debuginfo_level = None;
524525
let mut debuginfo_level_rustc = None;
525526
let mut debuginfo_level_std = None;
@@ -562,6 +563,7 @@ impl Config {
562563
if let Some(ref rust) = toml.rust {
563564
debug = rust.debug;
564565
debug_assertions = rust.debug_assertions;
566+
debug_assertions_std = rust.debug_assertions_std;
565567
debuginfo_level = rust.debuginfo_level;
566568
debuginfo_level_rustc = rust.debuginfo_level_rustc;
567569
debuginfo_level_std = rust.debuginfo_level_std;
@@ -585,7 +587,6 @@ impl Config {
585587
}
586588
set(&mut config.use_lld, rust.use_lld);
587589
set(&mut config.lld_enabled, rust.lld);
588-
set(&mut config.lldb_enabled, rust.lldb);
589590
set(&mut config.llvm_tools_enabled, rust.llvm_tools);
590591
config.rustc_parallel = rust.parallel_compiler.unwrap_or(false);
591592
config.rustc_default_linker = rust.default_linker.clone();
@@ -661,6 +662,8 @@ impl Config {
661662

662663
let default = debug == Some(true);
663664
config.rust_debug_assertions = debug_assertions.unwrap_or(default);
665+
config.rust_debug_assertions_std =
666+
debug_assertions_std.unwrap_or(config.rust_debug_assertions);
664667

665668
let with_defaults = |debuginfo_level_specific: Option<u32>| {
666669
debuginfo_level_specific.or(debuginfo_level).unwrap_or(if debug == Some(true) {

src/bootstrap/configure.py

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def v(*args):
5757
o("profiler", "build.profiler", "build the profiler runtime")
5858
o("full-tools", None, "enable all tools")
5959
o("lld", "rust.lld", "build lld")
60-
o("lldb", "rust.lldb", "build lldb")
6160
o("missing-tools", "dist.missing-tools", "allow failures when building tools")
6261
o("use-libcxx", "llvm.use-libcxx", "build LLVM with libc++")
6362
o("control-flow-guard", "rust.control-flow-guard", "Enable Control Flow Guard")

0 commit comments

Comments
 (0)