rust/src/libsyntax
bors c8b8eb1fda Auto merge of #32544 - alexcrichton:rustbuild-dist-libtest, r=brson
rustbuild: Fix dist for non-host targets

The `rust-std` package that we produce is expected to have not only the standard
library but also libtest for compiling unit tests. Unfortunately this does not
currently happen due to the way rustbuild is structured.

There are currently two main stages of compilation in rustbuild, one for the
standard library and one for the compiler. This is primarily done to allow us to
fill in the sysroot right after the standard library has finished compiling to
continue compiling the rest of the crates. Consequently the entire compiler does
not have to explicitly depend on the standard library, and this also should
allow us to pull in crates.io dependencies into the build in the future because
they'll just naturally build against the std we just produced.

These phases, however, do not represent a cross-compiled build. Target-only
builds also require libtest, and libtest is currently part of the
all-encompassing "compiler build". There's unfortunately no way to learn about
just libtest and its dependencies (in a great and robust fashion) so to ensure
that we can copy the right artifacts over this commit introduces a new build
step, libtest.

The new libtest build step has documentation, dist, and link steps as std/rustc
already do. The compiler now depends on libtest instead of libstd, and all
compiler crates can now assume that test and its dependencies are implicitly
part of the sysroot (hence explicit dependencies being removed). This makes the
build a tad less parallel as in theory many rustc crates can be compiled in
parallel with libtest, but this likely isn't where we really need parallelism
either (all the time is still spent in the compiler).

All in all this allows the `dist-std` step to depend on both libstd and libtest,
so `rust-std` packages produced by rustbuild should start having both the
standard library and libtest.

Closes #32523
2016-04-01 12:52:08 -07:00
..
diagnostics try! -> ? 2016-03-22 22:01:37 -05:00
errors Put in -Z continue-parse-after-error 2016-03-30 22:23:48 +02:00
ext do not overwrite spans as eagerly 2016-03-25 06:44:14 -04:00
parse syntax: Extra diagnostics for _ used in an identifier position 2016-03-31 10:15:36 +03:00
print fix alignment 2016-03-22 22:03:54 -05:00
util Auto merge of #29734 - Ryman:whitespace_consistency, r=Aatch 2016-03-07 20:06:17 -08:00
abi.rs [breaking-change] don't glob import/export syntax::abi enum variants 2016-02-11 12:34:48 +01:00
ast.rs fatal error instead of ICE for impossible range during HIR lowering 2016-03-24 01:33:31 -04:00
ast_util.rs Rename ast::Pat_ and its variants 2016-02-13 13:49:24 +03:00
attr.rs Use more autoderef in libsyntax 2016-02-12 19:28:42 +01:00
Cargo.toml rustbuild: Fix dist for non-host targets 2016-04-01 10:18:36 -07:00
codemap.rs do not overwrite spans as eagerly 2016-03-25 06:44:14 -04:00
config.rs Remove some unnecessary indirection from AST structures 2016-02-11 23:33:09 +03:00
entry.rs [breaking-change] don't glob export ast::Item_ variants 2016-02-11 12:34:48 +01:00
feature_gate.rs Type macro is tracked at rust-lang/rust#27245, not 27336 2016-03-27 16:48:57 +08:00
fold.rs Add default as contextual keyword, and parse it for impl items. 2016-03-14 15:04:33 -07:00
lib.rs sprinkle feature gates here and there 2016-03-22 22:02:47 -05:00
owned_slice.rs Deprecate name OwnedSlice and don't use it 2015-12-18 00:52:56 +03:00
ptr.rs Use more autoderef in libsyntax 2016-02-12 19:28:42 +01:00
show_span.rs use structured errors 2015-12-30 14:27:59 +13:00
std_inject.rs [breaking-change] don't glob export ast::Visibility variants 2016-02-11 12:34:48 +01:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Use more autoderef in libsyntax 2016-02-12 19:28:42 +01:00
visit.rs implement the ? operator 2016-03-07 14:39:39 -05:00