rust/src/test/run-pass-fulldeps
Alex Crichton 884715c654 rustc: Load the rustc_trans crate at runtime
Building on the work of # 45684 this commit updates the compiler to
unconditionally load the `rustc_trans` crate at runtime instead of linking to it
at compile time. The end goal of this work is to implement # 46819 where rustc
will have multiple backends available to it to load.

This commit starts off by removing the `extern crate rustc_trans` from the
driver. This involved moving some miscellaneous functionality into the
`TransCrate` trait and also required an implementation of how to locate and load
the trans backend. This ended up being a little tricky because the sysroot isn't
always the right location (for example `--sysroot` arguments) so some extra code
was added as well to probe a directory relative to the current dll (the
rustc_driver dll).

Rustbuild has been updated accordingly as well to have a separate compilation
invocation for the `rustc_trans` crate and assembly it accordingly into the
sysroot. Finally, the distribution logic for the `rustc` package was also
updated to slurp up the trans backends folder.

A number of assorted fallout changes were included here as well to ensure tests
pass and such, and they should all be commented inline.
2018-01-27 19:16:21 -08:00
..
auxiliary Allow a trailing comma in lint_array; fix #47428 2018-01-16 16:07:49 -06:00
proc-macro Fix spurious warning on empty proc macro crates 2018-01-22 21:09:14 +11:00
ast_stmt_expr_attr.rs
binary-heap-panic-safe.rs
compiler-calls.rs Allow runtime switching between trans backends 2018-01-19 20:27:10 +01:00
create-dir-all-bare.rs rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
custom-derive-partial-eq.rs
derive-no-std-not-supported.rs
derive-totalsum-attr.rs
derive-totalsum.rs
deriving-encodable-decodable-box.rs
deriving-encodable-decodable-cell-refcell.rs
deriving-global.rs
dropck_tarena_sound_drop.rs
empty-struct-braces-derive.rs
env.rs
extern-mod-syntax.rs
flt2dec.rs
issue_24106.rs
issue-2804.rs
issue-4016.rs
issue-4036.rs
issue-11881.rs
issue-13560.rs
issue-14021.rs
issue-15149.rs rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
issue-15778-pass.rs Allow a trailing comma in lint_array; fix #47428 2018-01-16 16:07:49 -06:00
issue-15924.rs
issue-16723.rs
issue-16822.rs
issue-16992.rs
issue-18502.rs
issue-18763-quote-token-tree.rs
issue-24972.rs
issue-35829.rs
issue-40663.rs
linkage-visibility.rs
llvm-pass-plugin.rs
lto-syntax-extension.rs
macro-crate-does-hygiene-work.rs
macro-crate-multi-decorator-literals.rs
macro-crate-multi-decorator.rs
macro-crate.rs
macro-quote-cond.rs
macro-quote-test.rs
mbe_matching_test_macro.rs
myriad-closures.rs
outlive-expansion-phase.rs
plugin-args-1.rs
plugin-args-2.rs
plugin-args-3.rs
plugin-lib-ok-in-plugin.rs
plugin-plus-extern-crate.rs
pprust-expr-roundtrip.rs Adds support for immovable generators. Move checking of invalid borrows across suspension points to borrowck. Fixes #44197, #45259 and #45093. 2018-01-23 05:10:38 +01:00
proc_macro.rs
qquote.rs
quote-tokens.rs
quote-unused-sp-no-warning.rs
regions-mock-tcx.rs
rename-directory.rs rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
roman-numerals-macro.rs
rustc_encodable_hygiene.rs
sort-unstable.rs
stdio-from.rs rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
switch-stdout.rs rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
syntax-extension-with-dll-deps.rs
vector-sort-panic-safe.rs