Skip to content

Commit 82e13a1

Browse files
authored
Merge pull request #21 from dtolnay/rust1_89
Update to Rust 1.89.0
2 parents b4e726e + b95ec36 commit 82e13a1

File tree

13 files changed

+1328
-806
lines changed

13 files changed

+1328
-806
lines changed

BUCK

Lines changed: 1088 additions & 654 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 176 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ rustc-main = { path = "rust/compiler/rustc", artifact = ["bin"], features = ["ll
2525
rustdoc-tool = { path = "rust/src/tools/rustdoc", artifact = ["bin"] }
2626

2727
[patch.crates-io]
28+
compiler_builtins = { path = "rust/library/compiler-builtins/compiler-builtins" }
2829
rustc-std-workspace-alloc = { path = "rust/library/rustc-std-workspace-alloc" }
2930
rustc-std-workspace-core = { path = "rust/library/rustc-std-workspace-core" }
3031
rustc-std-workspace-std = { path = "rust/library/rustc-std-workspace-std" }

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ These do not need to be run in any particular order.
88
# Download crates.io dependencies
99
$ buck2 uquery 'kind(crate_download, ...)' | xargs buck2 build
1010

11-
# Check standard library and rustc using bootstrap compiler in #[cfg(bootstrap)]
12-
$ buck2 build stage1:std[check]
11+
# Typecheck stage1 compiler using bootstrap compiler with #[cfg(bootstrap)]
1312
$ buck2 build stage1:rustc[check]
1413

1514
# Build and run stage1 compiler
1615
$ buck2 build stage1:rustc
1716
$ buck2 run stage1:rustc -- --version --verbose
1817

18+
# Typecheck standard library using stage1 compiler
19+
$ buck2 build stage1:std[check]
20+
1921
# Build and run stage2 compiler in #[cfg(not(bootstrap))] using stage1 compiler
2022
$ buck2 build stage2:rustc
2123
$ buck2 run stage2:rustc -- --version --verbose

fixups/clippy_lints/fixups.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extra_deps = [
44
":rustc_arena-0.0.0",
55
":rustc_ast-0.0.0",
66
":rustc_ast_pretty-0.0.0",
7-
":rustc_attr_parsing-0.0.0",
7+
":rustc_attr_data_structures-0.0.0",
88
":rustc_data_structures-0.0.0",
99
":rustc_driver-0.0.0",
1010
":rustc_errors-0.0.0",
@@ -24,5 +24,6 @@ extra_deps = [
2424
":rustc_span-0.0.0",
2525
":rustc_target-0.0.0",
2626
":rustc_trait_selection-0.0.0",
27+
":smallvec-1.15.1",
2728
":thin-vec-0.2.14",
2829
]

fixups/clippy_utils/fixups.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
extra_deps = [
2+
":indexmap-2.10.0",
23
":rustc_abi-0.0.0",
34
":rustc_ast-0.0.0",
5+
":rustc_attr_data_structures-0.0.0",
46
":rustc_attr_parsing-0.0.0",
57
":rustc_const_eval-0.0.0",
68
":rustc_data_structures-0.0.0",

fixups/compiler_builtins/fixups.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
extra_srcs = ["../libm/src/math/**/*.rs"]
2+
13
rustc_flags = [
24
# Port of Cargo change: https://github.com/rust-lang/rust/pull/73136/files
35
#

fixups/rustc_proc_macro/fixups.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extra_srcs = ["../../library/proc_macro/**/*.rs"]
2+
3+
# This is a compiler crate despite having source code located in the library
4+
# directory.
5+
target_compatible_with = ["//constraints:compiler"]

fixups/rustdoc/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript.run = true
22
cargo_env = ["CARGO_MANIFEST_DIR"]
33
extra_deps = [
4-
"toolchains//rust:sysroot[test]",
54
":pulldown-cmark-0.11.3",
65
":rustc_abi-0.0.0",
76
":rustc_ast-0.0.0",
87
":rustc_ast_pretty-0.0.0",
8+
":rustc_attr_data_structures-0.0.0",
99
":rustc_attr_parsing-0.0.0",
1010
":rustc_data_structures-0.0.0",
1111
":rustc_driver-0.0.0",

platforms/BUCK

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ execution_platforms(
1414
name = "execution",
1515
platforms = [
1616
":host",
17-
"//platforms/stage1:library",
18-
"//platforms/stage1:library-build-script",
1917
"//platforms/stage1:compiler",
2018
"//platforms/stage1:compiler-build-script",
21-
"//platforms/stage2:library",
22-
"//platforms/stage2:library-build-script",
19+
"//platforms/stage1:library",
20+
"//platforms/stage1:library-build-script",
2321
"//platforms/stage2:compiler",
2422
"//platforms/stage2:compiler-build-script",
23+
"//platforms/stage2:library",
24+
"//platforms/stage2:library-build-script",
2525
],
2626
)

0 commit comments

Comments
 (0)