summary refs log tree commit diff
path: root/src/rustc
AgeCommit message (Collapse)AuthorLines
2016-04-12rustbuild: Fix handling of the bootstrap keyAlex Crichton-3/+37
Bring the calculation logic in line with the makefiles and also set the RUSTC_BOOTSTRAP_KEY environment variable to enable the bootstrap on the stable compiler.
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-24/+0
2016-04-02Auto merge of #32598 - alexcrichton:rustbuild-osx, r=aturonbors-6/+0
rustbuild: Fix compile on OSX for 10.7 This commit should help configure our OSX rustbuild builder for targeting 10.7. A key part of this is using `libc++` instead of `libstdc++` as apparently it's more filled out and otherwise LLVM's cmake configuration would fail.
2016-04-01rustbuild: Fix dist for non-host targetsAlex Crichton-22/+71
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-03-29rustbuild: Fix compile on OSX for 10.7Alex Crichton-6/+12
This commit should help configure our OSX rustbuild builder for targeting 10.7. A key part of this is using `libc++` instead of `libstdc++` as apparently it's more filled out and otherwise LLVM's cmake configuration would fail.
2016-03-22Add rustbuild dependency from `rustc_borrowck` upon `rustc_mir` crate.Felix S. Klock II-0/+1
2016-03-16rustbuild: Implement `make dist`Alex Crichton-0/+15
This commit implements the `make dist` command in the new rustbuild build system, porting over `dist.mk` and `prepare.mk` into Rust. There's a huge amount of complexity between those two files, not all of which is likely justified, so the Rust implementation is *much* smaller. Currently the implementation still shells out to rust-installer as well as some python scripts, but ideally we'd rewrite it all in the future to not shell out and be in Rust proper.
2016-03-14rustbuild: Refactor stage arguments awayAlex Crichton-1/+0
The facet of a stage is rarely relevant when running a tool or building something, it's all a question of what stage the *compiler* is built in. We've already got a nice handy `Compiler` structure to carry this information, so let's use it! This refactors the signature of the `Build::cargo` function two ways: 1. The `stage` argument is removed, this was just duplicated with the `compiler` argument's stage field. 2. The `target` argument is now required. This was a bug where if the `--target` flag isn't passed then the snapshot stage0 compiler is always used, so we won't pick up any changes. Much of the other changes in this commit are just propagating these decisions outwards. For example many of the `Step` variants no longer have a stage argument as they're baked into the compiler.
2016-03-08rustbuild: Fix stage1 rustdocAlex Crichton-1/+1
Just always build stage1 rustdoc, it's really not that much more to build as it's essentially just one library.
2016-03-08rustbuild: Move rustbook to a `src/tools` directoryAlex Crichton-28/+0
We've actually got quite a few tools that are compiled as part of our build, let's start housing them all in a `tools` directory.
2016-02-28rustbuild: Sync changes to Cargo.lockAlex Crichton-2/+0
2016-02-21rustbuild: Sync some Cargo.toml/lib.rs dependenciesAlex Crichton-13/+11
The standard library doesn't depend on rustc_bitflags, so move it to explicit dependencies on all other crates. Additionally, the arena/fmt_macros deps could be dropped from libsyntax.
2016-02-11bootstrap: Add a bunch of Cargo.toml filesAlex Crichton-0/+12
These describe the structure of all our crate dependencies.
2016-02-11Add a Cargo-based build systemAlex Crichton-0/+652
This commit is the start of a series of commits which start to replace the makefiles with a Cargo-based build system. The aim is not to remove the makefiles entirely just yet but rather just replace the portions that invoke the compiler to do the bootstrap. This commit specifically adds enough support to perform the bootstrap (and all the cross compilation within) along with generating documentation. More commits will follow up in this series to actually wire up the makefiles to call this build system, so stay tuned!
2012-11-07Rename src/rustc to src/librustc. Use the driver crateBrian Anderson-61681/+0
2012-11-07rustc: Long linesPatrick Walton-1/+2
2012-11-07rustc: Implement the Drop trait. r=brsonPatrick Walton-2/+101
2012-11-06rustc: reuse const vals, translate fn paths as consts. Close #2530.Graydon Hoare-28/+48
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-693/+576
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-11-05rustc: Stop declaring unused upcallsBrian Anderson-27/+1
2012-11-05rustc: Implement deriving involving generic bounded traits. r=brsonPatrick Walton-36/+147
2012-11-05rustc: Implement parsing and typechecking for "once fn"Patrick Walton-41/+171
2012-11-02rustc: Refactor vtable lookup to use a vtable context, so that it can be ↵Patrick Walton-62/+101
called outside a function. rs=refactor
2012-11-02rustc: Eliminate the necessity of having an expr in order to call ↵Patrick Walton-44/+80
lookup_vtables(). rs=#rust Automatically-generated derived methods don't have exprs and need to call this function.
2012-11-02rustc: Implement ~Trait. r=nmatsakisPatrick Walton-32/+121
2012-11-02rustc: Implement dereference via unary '*' for structs. r=nmatsakisPatrick Walton-0/+51
2012-11-02rustc: Implement translation of pattern matching for tuple structs and ↵Patrick Walton-79/+225
unit-like structs. r=nmatsakis
2012-11-02rustc: Implement typechecking, exhaustiveness checking, and borrow checking ↵Patrick Walton-71/+166
for pattern matching of tuple structs. r=nmatsakis Conflicts: src/rustc/middle/typeck/check/alt.rs
2012-11-01Long linesBrian Anderson-1/+2
2012-11-01Support #[cfg] on methodsBrian Anderson-0/+28
2012-11-01rustc: Fix tab charactersPatrick Walton-30/+30
2012-11-01rustc: Stop overwriting trait static method types when checking generic ↵Patrick Walton-6/+34
trait refs. Closes #3903. rs=blocking-burg
2012-10-31rustc: Swap argument order in drop_and_cancel_cleanBrian Anderson-2/+2
2012-10-31Merge remote-tracking branch 'vertexclique/incoming'Brian Anderson-1/+7
2012-11-01change function and place in expr.rsMahmut Bulut-20/+7
2012-10-31Fix checking of duplicate and missing struct field initializers. Closes ↵Brian Anderson-5/+9
#3486. Closes #3892
2012-10-30Preserve parenthesization in the ASTTim Chevalier-33/+58
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
2012-10-30* dropnzero_val fn addedMahmut Bulut-1/+20
* zero-mem for not needed drop situation placed in Ignore
2012-10-30rustc: Translate "deriving" for monomorphic intra-crate enums. r=brsonPatrick Walton-38/+182
2012-10-30rustc: Instantiate trait refs for automatically-derived implementations. ↵Patrick Walton-5/+18
Should fix check-fast. rs=bustage
2012-10-29rustc: Implement typechecking for automatically-derived enumsPatrick Walton-2/+55
2012-10-29Merge pull request #3871 from pcwalton/masterPatrick Walton-32/+233
rustc: Translate monomorphic intra-crate automatically-derived method…
2012-10-27Remove unnecessary suffixesTim Chevalier-1/+1
2012-10-26Partial fix for #2687---impl method must only be subtype of trait method, ↵Niko Matsakis-14/+20
not exact match.
2012-10-26rustc: Translate monomorphic intra-crate automatically-derived methods that ↵Patrick Walton-32/+233
follow the "eq" format
2012-10-25Fix long lineTim Chevalier-1/+2
2012-10-25Merge remote-tracking branch '14427/incoming'Brian Anderson-2/+2
Conflicts: src/libstd/sort.rs
2012-10-25rustc: Translate and check exhaustiveness of struct-like enum variant ↵Patrick Walton-20/+105
patterns. r=nmatsakis
2012-10-25Merge pull request #3858 from pcwalton/struct-like-typeckPatrick Walton-77/+197
rustc: Typecheck, privacy check, and borrow check struct-like enum variants. r=tjc
2012-10-25Make error message for non-copyable args less misleadingTim Chevalier-1/+3
No review, just changing error message text. Closes #3855