@@ -14,21 +14,18 @@ git checkout -- .
14
14
git checkout " $( rustc -V | cut -d' ' -f3 | tr -d ' (' ) "
15
15
16
16
git apply - << EOF
17
- diff --git a/.gitmodules b/.gitmodules
18
- index 984113151de..c1e9d960d56 100644
19
- --- a/.gitmodules
20
- +++ b/.gitmodules
21
- @@ -34,10 +34,6 @@
22
- [submodule "src/doc/edition-guide"]
23
- path = src/doc/edition-guide
24
- url = https://github.com/rust-lang/edition-guide.git
25
- -[submodule "src/llvm-project"]
26
- - path = src/llvm-project
27
- - url = https://github.com/rust-lang/llvm-project.git
28
- - branch = rustc/11.0-2020-10-12
29
- [submodule "src/doc/embedded-book"]
30
- path = src/doc/embedded-book
31
- url = https://github.com/rust-embedded/book.git
17
+ diff --git a/Cargo.toml b/Cargo.toml
18
+ index 5bd1147cad5..10d68a2ff14 100644
19
+ --- a/Cargo.toml
20
+ +++ b/Cargo.toml
21
+ @@ -111,5 +111,7 @@ rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
22
+ # source code for this crate.
23
+ backtrace = { path = "library/backtrace" }
24
+
25
+ +compiler_builtins = { path = "../build_sysroot/compiler-builtins" }
26
+ +
27
+ [patch."https://github.com/rust-lang/rust-clippy"]
28
+ clippy_lints = { path = "src/tools/clippy/clippy_lints" }
32
29
diff --git a/compiler/rustc_data_structures/Cargo.toml b/compiler/rustc_data_structures/Cargo.toml
33
30
index 23e689fcae7..5f077b765b6 100644
34
31
--- a/compiler/rustc_data_structures/Cargo.toml
@@ -41,6 +38,19 @@ index 23e689fcae7..5f077b765b6 100644
41
38
42
39
[target.'cfg(windows)'.dependencies]
43
40
winapi = { version = "0.3", features = ["fileapi", "psapi"] }
41
+ diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
42
+ index d95b5b7f17f..00b6f0e3635 100644
43
+ --- a/library/alloc/Cargo.toml
44
+ +++ b/library/alloc/Cargo.toml
45
+ @@ -8,7 +8,7 @@ edition = "2018"
46
+
47
+ [dependencies]
48
+ core = { path = "../core" }
49
+ -compiler_builtins = { version = "0.1.39", features = ['rustc-dep-of-std'] }
50
+ +compiler_builtins = { version = "0.1.39", features = ['rustc-dep-of-std', 'no-asm'] }
51
+
52
+ [dev-dependencies]
53
+ rand = "0.7"
44
54
EOF
45
55
46
56
cat > config.toml << EOF
0 commit comments