about summary refs log tree commit diff
path: root/src/librustc/session/config.rs
AgeCommit message (Collapse)AuthorLines
2019-04-28Rollup merge of #60347 - JohnTitor:remove-flags, r=matthewjasperMazdak Farrokhzad-4/+0
Remove `-Z two-phase-borrows` and `-Z two-phase-beyond-autoref` fixes #60331
2019-04-28Rollup merge of #60270 - alexcrichton:metadata-multi-cgu, r=oli-obkMazdak Farrokhzad-3/+2
rustc: Flag metadata compatible with multiple CGUs It looks like the `OutputType::Metadata` kind in the compiler was misclassified in #38571 long ago by accident as incompatible with codegen units and a single output file. This means that if you emit both a linkable artifact and metadata it silently turns off multiple codegen units unintentionally! This commit corrects the situation to ensure that if `--emit metadata` is used it doesn't implicitly disable multiple codegen units. This will ensure we don't accidentally regress compiler performance when striving to implement pipelined compilation!
2019-04-28Remove two-phase-beyond-autorefYuki OKUSHI-2/+0
2019-04-28Remove two-phase-borrowsYuki OKUSHI-2/+0
2019-04-25ignore-tidy-filelength on all files with greater than 3000 linesvarkor-0/+2
2019-04-25rustc: Flag metadata compatible with multiple CGUsAlex Crichton-3/+2
It looks like the `OutputType::Metadata` kind in the compiler was misclassified in #38571 long ago by accident as incompatible with codegen units and a single output file. This means that if you emit both a linkable artifact and metadata it silently turns off multiple codegen units unintentionally! This commit corrects the situation to ensure that if `--emit metadata` is used it doesn't implicitly disable multiple codegen units. This will ensure we don't accidentally regress compiler performance when striving to implement pipelined compilation!
2019-04-21Enable migrate mode by default on the 2015 editionMatthew Jasper-15/+2
This also fully stabilizes two-phase borrows on all editions
2019-04-18Implement event filtering for self-profiler.Michael Woerister-0/+2
2019-04-17Rollup merge of #59128 - oli-obk:colorful_json, r=mark-i-m,eddybMazdak Farrokhzad-36/+70
Emit ansi color codes in the `rendered` field of json diagnostics cc @ljedrz Implemented for https://github.com/rust-lang/rust/pull/56595#issuecomment-447645115 (x.py clippy)
2019-04-14Derive Default for ExternEntryAaron Hill-20/+11
2019-04-14Fix ExternEntry testAaron Hill-25/+11
2019-04-14Refactor structure of ExternEntryAaron Hill-38/+28
2019-04-14Move new_public to 'tess' moduleAaron Hill-8/+10
2019-04-14Improve formattingAaron Hill-24/+1
2019-04-14Fix testsAaron Hill-7/+28
2019-04-14Fix tidyAaron Hill-1/+1
2019-04-14Combine 'Extern' and 'ExternPrivate'Aaron Hill-27/+50
2019-04-14Properly parse '--extern-private' with name and pathAaron Hill-6/+37
2019-04-11Clean up handling of -Zpgo-gen commandline option.Michael Woerister-6/+32
2019-04-02Rename `colorful-json` to `json-rendered` and make it a selection instead of ↵Oliver Scherer-23/+33
a bool
2019-04-02Fix forgotten capitalizationOliver Scherer-5/+5
2019-04-02Adjust tests to new enum variant fieldsOliver Scherer-20/+25
2019-04-02Emit ansi color codes in the `rendered` field of json diagnosticsOliver Scherer-8/+27
2019-04-01Rollup merge of #58507 - Zoxc:time-extended, r=michaelwoeristerMazdak Farrokhzad-0/+2
Add a -Z time option which prints only passes which runs once This ensures `-Z time-passes` fits on my screen =P r? @michaelwoerister
2019-03-23Fixes #59361Peter Hall-6/+6
2019-03-20Add a -Z time option which prints only passes which runs onceJohn Kåre Alsaker-0/+2
2019-03-16Rename `MetaItem::ident` to `MetaItem::path`Vadim Petrochenkov-1/+1
2019-03-16syntax: Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-1/+2
2019-03-14Add `-Z allow_features=...` flagTyler Mandry-0/+6
2019-03-14Add support for comma-separated option listsTyler Mandry-0/+13
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-10/+26
2019-03-08Rollup merge of #58984 - estebank:multi-treat-err-as-bug, r=oli-obkPietro Albini-3/+12
Teach `-Z treat-err-as-bug` to take a number of errors to emit `-Z treat-err-as-bug` will cause `rustc` to panic after the first error is reported, like previously. `-Z treat-err-as-bug=2` will cause `rustc` to panic after 2 errors have been reported. Fix #58983.
2019-03-07Update treat-err-as-bug help textEsteban Küber-1/+1
2019-03-07Keep current behavior while accepting error countEsteban Küber-2/+11
2019-03-06Fix incorrect defaultEsteban Kuber-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-05Allow linking to a proc macro on the target in metadata and still use a host ↵John Kåre Alsaker-0/+2
proc macro to execute them
2019-03-03Remove profiler output and replace with a raw event dumpWesley Wiser-3/+1
Related to #58372
2019-02-28Introduce rustc_interface and move some methods thereJohn Kåre Alsaker-0/+7
2019-02-14Rollup merge of #58365 - Zoxc:task-status, r=michaelwoeristerMazdak Farrokhzad-0/+2
Add an option to print the status of incremental tasks / dep nodes after running them r? @michaelwoerister
2019-02-13Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasperMazdak Farrokhzad-2/+1
Rename rustc_errors dependency in rust 2018 crates I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules. Related: rust-lang/cargo#5653 cc #58099 r? @Centril
2019-02-13Rollup merge of #58057 - michaelwoerister:stabilize-xlto, r=alexcrichtonMazdak Farrokhzad-21/+23
Stabilize linker-plugin based LTO (aka cross-language LTO) This PR stabilizes [linker plugin based LTO](https://github.com/rust-lang/rust/issues/49879), also known as "cross-language LTO" because it allows for doing inlining and other optimizations across language boundaries in mixed Rust/C/C++ projects. As described in the tracking issue, it works by making `rustc` emit LLVM bitcode instead of machine code, the same as `clang` does. A linker with the proper plugin (like LLD) can then run (Thin)LTO across all modules. The feature has been implemented over a number of pull requests and there are various [codegen](https://github.com/rust-lang/rust/blob/master/src/test/codegen/no-dllimport-w-cross-lang-lto.rs) and [run](https://github.com/rust-lang/rust/tree/master/src/test/run-make-fulldeps/cross-lang-lto-clang)-[make](https://github.com/rust-lang/rust/tree/master/src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs) [tests](https://github.com/rust-lang/rust/tree/master/src/test/run-make-fulldeps/cross-lang-lto) that make sure that it keeps working. It also works for building big projects like [Firefox](https://treeherder.mozilla.org/#/jobs?repo=try&revision=2ce2d5ddcea6fbff790503eac406954e469b2f5d). The PR makes the feature available under the `-C linker-plugin-lto` flag. As discussed in the tracking issue it is not cross-language specific and also not LLD specific. `-C linker-plugin-lto` is descriptive of what it does. If someone has a better name, let me know `:)`
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-2/+1
2019-02-12Stabilize linker-plugin based LTO.Michael Woerister-21/+23
2019-02-11Add an option to print the status of incremental tasks / dep nodes after ↵John Kåre Alsaker-0/+2
running them
2019-02-10rustc: doc commentsAlexander Regueiro-5/+5
2019-02-07Rollup merge of #58193 - mark-i-m:rustc-2018, r=Centrilkennytm-15/+15
Move librustc to 2018 r? @Centril Part of #58099 It would be great to get this reviewed quickly to avoid merge conflicts...
2019-02-06Auto merge of #56123 - oli-obk:import_miri_from_future, r=eddybbors-0/+2
Add a forever unstable opt-out of const qualification checks r? @eddyb cc @RalfJung @Centril basically a forever unstable way to screw with const things in horribly unsafe, unsound and incoherent ways. Note that this does *not* affect miri except by maybe violating assumptions that miri makes. But there's no change in how miri evaluates things.
2019-02-05move librustc to 2018Mark Mansi-15/+15
2019-02-01Cleanup unecessary codeAaron Hill-10/+0