-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1,686 changed files
with
941 additions
and
1,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_ast" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
rustc_serialize = { path = "../rustc_serialize" } | ||
tracing = "0.1" | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_index = { path = "../rustc_index" } | ||
rustc_lexer = { path = "../rustc_lexer" } | ||
rustc_macros = { path = "../rustc_macros" } | ||
smallvec = { version = "1.0", features = ["union", "may_dangle"] } | ||
bitflags = "1.2.1" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_ast_lowering" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
rustc_arena = { path = "../rustc_arena" } | ||
tracing = "0.1" | ||
rustc_ast_pretty = { path = "../rustc_ast_pretty" } | ||
rustc_hir = { path = "../rustc_hir" } | ||
rustc_target = { path = "../rustc_target" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_index = { path = "../rustc_index" } | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_session = { path = "../rustc_session" } | ||
rustc_ast = { path = "../rustc_ast" } | ||
smallvec = { version = "1.0", features = ["union", "may_dangle"] } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_ast_passes" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
itertools = "0.8" | ||
tracing = "0.1" | ||
rustc_ast_pretty = { path = "../rustc_ast_pretty" } | ||
rustc_attr = { path = "../rustc_attr" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_feature = { path = "../rustc_feature" } | ||
rustc_parse = { path = "../rustc_parse" } | ||
rustc_session = { path = "../rustc_session" } | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_ast = { path = "../rustc_ast" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_ast_pretty" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
tracing = "0.1" | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_ast = { path = "../rustc_ast" } | ||
rustc_target = { path = "../rustc_target" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_attr" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
rustc_ast_pretty = { path = "../rustc_ast_pretty" } | ||
rustc_serialize = { path = "../rustc_serialize" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_feature = { path = "../rustc_feature" } | ||
rustc_lexer = { path = "../rustc_lexer" } | ||
rustc_macros = { path = "../rustc_macros" } | ||
rustc_session = { path = "../rustc_session" } | ||
rustc_ast = { path = "../rustc_ast" } | ||
version_check = "0.9" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_builtin_macros" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
rustc_parse_format = { path = "../rustc_parse_format" } | ||
tracing = "0.1" | ||
rustc_ast_pretty = { path = "../rustc_ast_pretty" } | ||
rustc_attr = { path = "../rustc_attr" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_feature = { path = "../rustc_feature" } | ||
rustc_parse = { path = "../rustc_parse" } | ||
rustc_target = { path = "../rustc_target" } | ||
rustc_session = { path = "../rustc_session" } | ||
smallvec = { version = "1.0", features = ["union", "may_dangle"] } | ||
rustc_ast = { path = "../rustc_ast" } | ||
rustc_expand = { path = "../rustc_expand" } | ||
rustc_span = { path = "../rustc_span" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_codegen_llvm" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
test = false | ||
doctest = false | ||
|
||
[dependencies] | ||
bitflags = "1.0" | ||
libc = "0.2" | ||
measureme = "0.7.1" | ||
snap = "1" | ||
tracing = "0.1" | ||
rustc_middle = { path = "../rustc_middle" } | ||
rustc-demangle = "0.1" | ||
rustc_attr = { path = "../rustc_attr" } | ||
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_feature = { path = "../rustc_feature" } | ||
rustc_fs_util = { path = "../rustc_fs_util" } | ||
rustc_hir = { path = "../rustc_hir" } | ||
rustc_incremental = { path = "../rustc_incremental" } | ||
rustc_index = { path = "../rustc_index" } | ||
rustc_llvm = { path = "../../src/librustc_llvm" } | ||
rustc_session = { path = "../rustc_session" } | ||
rustc_serialize = { path = "../rustc_serialize" } | ||
rustc_target = { path = "../rustc_target" } | ||
smallvec = { version = "1.0", features = ["union", "may_dangle"] } | ||
rustc_ast = { path = "../rustc_ast" } | ||
rustc_span = { path = "../rustc_span" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_codegen_ssa" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
test = false | ||
|
||
[dependencies] | ||
bitflags = "1.2.1" | ||
cc = "1.0.1" | ||
num_cpus = "1.0" | ||
memmap = "0.7" | ||
tracing = "0.1" | ||
libc = "0.2.50" | ||
jobserver = "0.1.11" | ||
tempfile = "3.1" | ||
pathdiff = "0.2.0" | ||
|
||
rustc_serialize = { path = "../rustc_serialize" } | ||
rustc_ast = { path = "../rustc_ast" } | ||
rustc_span = { path = "../rustc_span" } | ||
rustc_middle = { path = "../rustc_middle" } | ||
rustc_apfloat = { path = "../rustc_apfloat" } | ||
rustc_attr = { path = "../rustc_attr" } | ||
rustc_symbol_mangling = { path = "../rustc_symbol_mangling" } | ||
rustc_data_structures = { path = "../rustc_data_structures"} | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_fs_util = { path = "../rustc_fs_util" } | ||
rustc_hir = { path = "../rustc_hir" } | ||
rustc_incremental = { path = "../rustc_incremental" } | ||
rustc_index = { path = "../rustc_index" } | ||
rustc_macros = { path = "../rustc_macros" } | ||
rustc_target = { path = "../rustc_target" } | ||
rustc_session = { path = "../rustc_session" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "rustc_driver" | ||
version = "0.0.0" | ||
edition = "2018" | ||
|
||
[lib] | ||
crate-type = ["dylib"] | ||
|
||
[dependencies] | ||
lazy_static = "1.0" | ||
libc = "0.2" | ||
tracing = { version = "0.1.18", features = ["release_max_level_info"] } | ||
tracing-subscriber = { version = "0.2.10", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] } | ||
rustc_middle = { path = "../rustc_middle" } | ||
rustc_ast_pretty = { path = "../rustc_ast_pretty" } | ||
rustc_target = { path = "../rustc_target" } | ||
rustc_lint = { path = "../rustc_lint" } | ||
rustc_data_structures = { path = "../rustc_data_structures" } | ||
rustc_errors = { path = "../rustc_errors" } | ||
rustc_feature = { path = "../rustc_feature" } | ||
rustc_hir = { path = "../rustc_hir" } | ||
rustc_hir_pretty = { path = "../rustc_hir_pretty" } | ||
rustc_metadata = { path = "../rustc_metadata" } | ||
rustc_mir = { path = "../rustc_mir" } | ||
rustc_parse = { path = "../rustc_parse" } | ||
rustc_plugin_impl = { path = "../rustc_plugin_impl" } | ||
rustc_save_analysis = { path = "../rustc_save_analysis" } | ||
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" } | ||
rustc_session = { path = "../rustc_session" } | ||
rustc_error_codes = { path = "../rustc_error_codes" } | ||
rustc_interface = { path = "../rustc_interface" } | ||
rustc_serialize = { path = "../rustc_serialize" } | ||
rustc_ast = { path = "../rustc_ast" } | ||
rustc_span = { path = "../rustc_span" } | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3", features = ["consoleapi", "debugapi", "processenv"] } | ||
|
||
[features] | ||
llvm = ['rustc_interface/llvm'] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.