Skip to content

Commit 85fbf49

Browse files
committed
Auto merge of #74862 - mark-i-m:mv-compiler, r=petrochenkov
Move almost all compiler crates to compiler/ This PR implements rust-lang/compiler-team#336 and moves all `rustc_*` crates from `src` to the new `compiler` directory. `librustc_foo` directories are renamed to `rustc_foo`. `src` directories are introduced inside `rustc_*` directories to mirror the scheme already use for `library` crates.
2 parents db534b3 + 9e5f7d5 commit 85fbf49

File tree

1,686 files changed

+941
-1051
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,686 files changed

+941
-1051
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[workspace]
22
members = [
33
"src/bootstrap",
4-
"src/rustc",
5-
"src/librustc_codegen_llvm",
4+
"compiler/rustc",
65
"library/std",
76
"library/test",
87
"src/tools/cargotest",

src/rustc/Cargo.toml renamed to compiler/rustc/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ edition = '2018'
66

77
[[bin]]
88
name = "rustc_binary"
9-
path = "rustc.rs"
9+
path = "src/main.rs"
1010

1111
[dependencies]
12-
rustc_driver = { path = "../librustc_driver" }
12+
rustc_driver = { path = "../rustc_driver" }
1313

1414
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
1515
# crate is intended to be used by codegen backends, which may not be in-tree.
16-
rustc_codegen_ssa = { path = "../librustc_codegen_ssa" }
16+
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
1717

1818
[dependencies.jemalloc-sys]
1919
version = '0.3.0'
File renamed without changes.

src/librustc_apfloat/Cargo.toml renamed to compiler/rustc_apfloat/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ name = "rustc_apfloat"
44
version = "0.0.0"
55
edition = "2018"
66

7-
[lib]
8-
name = "rustc_apfloat"
9-
path = "lib.rs"
10-
117
[dependencies]
128
bitflags = "1.2.1"
139
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/librustc_arena/Cargo.toml renamed to compiler/rustc_arena/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ name = "rustc_arena"
44
version = "0.0.0"
55
edition = "2018"
66

7-
[lib]
8-
name = "rustc_arena"
9-
path = "lib.rs"
10-
117
[dependencies]
12-
rustc_data_structures = { path = "../librustc_data_structures" }
8+
rustc_data_structures = { path = "../rustc_data_structures" }
139
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

0 commit comments

Comments
 (0)