about summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2019-07-05Add a "total" measurement to -Ztime-passes.Nicholas Nethercote-6/+26
This is useful for getting the total compilation time at the end. To do this, the patch changes `print_time_passes_entry` to not increment the depth, which means that `print_time_passes_entry_internal` is no longer needed.
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-1/+1
2019-07-04rename hir::map::local_def_id to local_def_id_from_node_idljedrz-1/+1
2019-07-03Remove needless lifetimesJeremy Stucki-10/+10
2019-06-29Remove io::Result from syntax::printMark Rousskov-54/+44
Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure
2019-06-29Replace pretty-printer Box<dyn Write> with &mut StringMark Rousskov-17/+17
2019-06-24Enable internal lints in bootstrapflip1995-1/+0
2019-06-24HirIdify driver::pretty::HirPrinterSupport::node_pathljedrz-6/+5
2019-06-24HIR: rename find_by_hir_id to findljedrz-1/+1
2019-06-24HIR: remove the NodeId findljedrz-2/+2
2019-06-24HIR: rename get_parent_node_by_hir_id to get_parent_nodeljedrz-1/+1
2019-06-20rename hir::map::get_by_hir_id to getljedrz-3/+3
2019-06-20remove hir::map::getljedrz-2/+4
2019-06-20make blocks::Code work with HirIdljedrz-1/+2
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-1/+1
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-1/+1
2019-06-17replace some uses of NodeId with HirIdljedrz-1/+2
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-8/+8
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-21/+21
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-8/+8
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-3/+3
2019-06-11Add deny(unused_lifetimes) to all the crates that have deny(internal).Eduard-Mihai Burtescu-0/+1
2019-05-18Declare DefIndex with the newtype_index macroFabian Drinck-1/+1
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-1/+2
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-11Eliminate `comments::Literal`Vadim Petrochenkov-4/+2
2019-05-09cleanup: Remove `DefIndexAddressSpace`Vadim Petrochenkov-2/+1
2019-05-08Optimize HIR mapJohn Kåre Alsaker-5/+7
2019-05-04Remove `def_path_from_id`, `node_id_to_string`Fabian Drinck-1/+4
2019-04-30Rename to RUSTC_LOGYuki OKUSHI-1/+1
2019-04-26Update rustc-rayon versionJohn Kåre Alsaker-1/+1
2019-04-17Deny `internal` in stage0Mateusz Mikuła-1/+1
2019-04-12Rollup merge of #59680 - DevQps:document-rustc-z-flag, r=cramertjMazdak Farrokhzad-2/+2
Document the -Z flag to the rustc book # Description Changes: - Added new documentation on the `-Z` flag of rustc in the command-line arguments section of the rustc book. If I need to rephrase anything or if you have any improvements, please let me know! I deliberately did not create an exhaustive list of all options since they are likely to change over time and per toolchain version. closes #41142
2019-04-10Updated the documentation, now claiming the -Z is associated to unstable ↵Christian-2/+2
compiler flags, instead of flags for debugging.
2019-04-03Deny internal lints on non conflicting cratesflip1995-0/+1
- libarena - librustc_allocator - librustc_borrowck - librustc_codegen_ssa - librustc_codegen_utils - librustc_driver - librustc_errors - librustc_incremental - librustc_metadata - librustc_passes - librustc_privacy - librustc_resolve - librustc_save_analysis - librustc_target - librustc_traits - libsyntax - libsyntax_ext - libsyntax_pos
2019-03-27librustc_driver => 2018Taiki Endo-45/+23
2019-03-24Rollup merge of #59251 - matthewjasper:fix-graphviz, r=petrochenkovkennytm-1/+11
Use a valid name for graphviz graphs Hiridification has broken graphviz output because `HirId` has a more complex display implemetation than `NodeId`. Since the id was just used to generate a distinct identifier, we just pull out the various constituent indexed.
2019-03-18Auto merge of #58847 - bjorn3:remove_metadata_only_cg, r=alexcrichtonbors-617/+0
Remove metadata only codegen backend It is unused and probably broken at the moment.
2019-03-17Use a valid name for graphviz graphsMatthew Jasper-1/+11
2019-03-16Rename `MetaItem::ident` to `MetaItem::path`Vadim Petrochenkov-1/+1
2019-03-16Remove rustc_driver testsbjorn3-617/+0
2019-03-15rustc: replace node_path_str with uses of def_path_str.Eduard-Mihai Burtescu-1/+1
2019-03-10Drop expanded AST later if in save_analysis modeIgor Matuszewski-3/+8
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-1973/+415
2019-03-07Fix with_emitter callersEsteban Küber-1/+1
2019-03-06Make `-Z treat-err-as-bug` take a number of errors to be emittedEsteban Küber-2/+2
`-Z treat-err-as-bug=0` will cause `rustc` to panic after the first error is reported. `-Z treat-err-as-bug=2` will cause `rustc` to panic after 3 errors have been reported.
2019-03-03Remove profiler output and replace with a raw event dumpWesley Wiser-6/+1
Related to #58372
2019-03-03Wrap the self-profiler in an `Arc<Mutex<>>`Wesley Wiser-8/+9
This will allow us to send it across threads and measure things like LLVM time.
2019-03-02driver: fix testljedrz-4/+4
2019-03-02hir: remove NodeId from Pat and FieldPatljedrz-2/+2