about summary refs log tree commit diff
path: root/src/librustc_driver/driver.rs
AgeCommit message (Collapse)AuthorLines
2016-03-25Compute a salt from arguments passed via -Cmetadata.Michael Woerister-3/+30
2016-03-22fix alignmentJorge Aparicio-16/+16
2016-03-22try! -> ?Jorge Aparicio-32/+32
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
2016-03-21scaffolding for borrowck on MIR.Felix S. Klock II-1/+1
emit (via debug!) scary message from `fn borrowck_mir` until basic prototype is in place. Gather children of move paths and set their kill bits in dataflow. (Each node has a link to the child that is first among its siblings.) Hooked in libgraphviz based rendering, including of borrowck dataflow state. doing this well required some refactoring of the code, so I cleaned it up more generally (adding comments to explain what its trying to do and how it is doing it). Update: this newer version addresses most review comments (at least the ones that were largely mechanical changes), but I left the more interesting revisions to separate followup commits (in this same PR).
2016-03-14Auto merge of #32169 - mitaa:anon-tip, r=nrcbors-5/+4
Allow custom filenames for anonymous inputs This came out of #29253 but doesn't fix it. I thought it might be worth merging on its own nonetheless.
2016-03-14Allow custom filenames for anonymous inputsmitaa-5/+4
2016-03-13Auto merge of #31916 - nagisa:mir-passmgr-2, r=arielb1bors-10/+15
Add Pass manager for MIR A new PR, since rebasing the original one (https://github.com/rust-lang/rust/pull/31448) properly was a pain. Since then there has been several changes most notable of which: 1. Removed the pretty-printing with `#[rustc_mir(graphviz/pretty)]`, mostly because we now have `--unpretty=mir`, IMHO that’s the direction we should expand this functionality into; 2. Reverted the infercx change done for typeck, because typeck can make an infercx for itself by being a `MirMapPass` r? @nikomatsakis
2016-03-09Auto merge of #32073 - jseyfried:fix_another_trait_privacy_error, r=nikomatsakisbors-4/+1
Fix incorrect trait privacy error This PR fixes #21670 by using the crate metadata instead of `ExternalExports` to determine if an external item is public. r? @nikomatsakis
2016-03-09Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrcbors-10/+17
[breaking-batch] Move more uses of `panictry!` out of libsyntax
2016-03-06Refactor away `ExternalExports`Jeffrey Seyfried-4/+1
2016-03-04Address commentsSimonas Kazlauskas-2/+1
2016-03-04Add Pass manager for MIRSimonas Kazlauskas-11/+17
2016-03-03Rename middle::ty::ctxt to TyCtxtJeffrey Seyfried-7/+7
2016-02-20fix a few remaining bugs - make check runs!Ariel Ben-Yehuda-8/+12
2016-02-19Do less panicking in generalJonas Schievink-1/+7
2016-02-16Move more uses of `panictry!` out of libsyntaxJonas Schievink-10/+11
[breaking-change] for syntax extensions
2016-02-13Auto merge of #31524 - jonas-schievink:autoderef, r=steveklabnikbors-1/+1
2016-02-12Use more autoderef in rustc_driverJonas Schievink-1/+1
2016-02-12Auto merge of #30726 - GuillaumeGomez:compile-fail, r=brsonbors-1/+1
r? @brson cc @alexcrichton I still need to add error code explanation test with this, but I can't figure out a way to generate the `.md` files in order to test example source codes. Will fix #27328.
2016-02-09Allow registering MIR-passes through compiler pluginsOliver Schneider-2/+7
2016-02-09make `MirMap` a struct instead of a type alias for `NodeMap`Oliver Schneider-1/+1
2016-02-07Add compile-fail test in rustdocGuillaume Gomez-1/+1
2016-02-05Instrument a bunch of tasks that employ the HIR map in one way orNiko Matsakis-21/+31
another and were not previously instrumented.
2016-02-01Try to run compiler callbacks when we error outNick Cameron-67/+93
2016-02-01Replace some aborts with ResultsNick Cameron-12/+14
Fixes #31207 by removing abort_if_new_errors
2016-01-26rebasingNick Cameron-2/+2
2016-01-26Initial work towards abort-free compilationNick Cameron-202/+203
The goal is that the compiler will pass `Result`s around rather than using abort_if_errors. To preserve behaviour we currently abort at the top level. I've removed all other aborts from the driver, but haven't touched any of the nested aborts.
2016-01-22test falloutNick Cameron-11/+22
2016-01-22The war on abort_if_errorsNick Cameron-31/+33
2016-01-21move more checks out of librustcOliver Schneider-6/+7
2016-01-15move const block checks before lowering stepOliver Schneider-1/+5
this makes sure the checks run before typeck (which might use the constant or const function to calculate an array length) and gives prettier error messages in case of for loops and such (since they aren't expanded yet).
2016-01-11Replace --show-span with -Z show-spanMatt Kraai-1/+1
2016-01-05Annotate the compiler with information about what it is doing when.Niko Matsakis-1/+1
2015-12-30use structured errorsNick Cameron-2/+3
2015-12-25Delete the AST after loweringJonas Schievink-3/+11
2015-12-24ast_map => hir_mapJonas Schievink-22/+20
2015-12-21syntax: Respect allow_internal_unstable in macrosAlex Crichton-1/+1
This change modifies the feature gating of special `#[cfg]` attributes to not require a `#![feature]` directive in the crate-of-use if the source of the macro was declared with `#[allow_internal_unstable]`. This enables the standard library's macro for `thread_local!` to make use of the `#[cfg(target_thread_local)]` attribute despite it being feature gated (e.g. it's a hidden implementation detail).
2015-12-15Move built-in syntax extensions to a separate crateSeo Sanghyeon-6/+10
2015-12-05Do MTWT resolution during lowering to HIRVadim Petrochenkov-6/+7
2015-12-02Now that MIR regressions are fixed, re-enable MIR for all users.Niko Matsakis-15/+4
2015-11-26split the metadata code into rustc_metadataAriel Ben-Yehuda-4/+4
tests & rustdoc still broken
2015-11-26move librustc/plugin to librustc_pluginAriel Ben-Yehuda-2/+2
this is a [breaking-change] to all plugin authors - sorry
2015-11-26make CrateStore a trait objectAriel Ben-Yehuda-3/+9
rustdoc still broken
2015-11-22Look up macro names as well when suggesting replacements for function ↵Manish Goregaokar-6/+7
resolve errors fixes #5780
2015-11-19Changes to data produced by privacy passVadim Petrochenkov-9/+6
2015-11-18Port a bunch of code new-visitor; all of these ports wereNiko Matsakis-1/+1
straightforward uses of `visit_all_items`. In some cases I had to remove empty `visit_item` calls that were just to suppress visiting nested items.
2015-11-18Auto merge of #29083 - petrochenkov:stability3, r=alexcrichtonbors-2/+1
What this patch does: - Stability annotations are now based on "exported items" supplied by rustc_privacy and not "public items". Exported items are as accessible for external crates as directly public items and should be annotated with stability attributes. - Trait impls require annotations now. - Reexports require annotations now. - Crates themselves didn't require annotations, now they do. - Exported macros are annotated now, but these annotations are not used yet. - Some useless annotations are detected and result in errors - Finally, some small bugs are fixed - deprecation propagates from stable deprecated parents, items in blocks are traversed correctly (fixes https://github.com/rust-lang/rust/issues/29034) + some code cleanup.
2015-11-18MIR: Add pass that erases all regions right before transMichael Woerister-3/+7
2015-11-18Rework stability annotation passVadim Petrochenkov-2/+1
2015-11-12Make the mir_map available to the after_analysis CompileController step.Scott Olson-0/+5