about summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2018-06-05Add AdHocCalls and pass self to build_controller as Box<Self>bjorn3-22/+50
2018-05-28stop invoking `DebruijnIndex::new` directlyNiko Matsakis-7/+10
Co-authored-by: csmoe <35686186+csmoe@users.noreply.github.com>
2018-05-17Add edition to expansion infoVadim Petrochenkov-1/+2
2018-05-17Rename trans to codegen everywhere.Irina Popa-63/+65
2018-05-15Pull common parameters into GenericParamDefvarkor-1/+1
This leads to a lot of simplifications, as most code doesn't actually need to know about the specific lifetime/type data; rather, it's concerned with properties like name, index and def_id.
2018-05-13Add a Rayon thread poolJohn Kåre Alsaker-25/+83
2018-05-13Add Sync bounds to the crate storeJohn Kåre Alsaker-6/+8
2018-05-07Make DepGraph::previous_work_products immutableWesley Wiser-9/+10
Fixes #50501
2018-05-02make it compile againflip1995-1/+1
2018-05-02Allow Path for name of MetaItemSeiichi Uchida-1/+1
2018-04-27rustc_driver: Catch ICEs on the main thread tooJosh Stone-1/+2
2018-04-27Auto merge of #50102 - Zoxc:query-nomacro, r=michaelwoeristerbors-1/+1
Move query code outside macros and store query jobs separately from query results Based on https://github.com/rust-lang/rust/pull/50067 r? @michaelwoerister
2018-04-27Move query functions out from the define_maps! macroJohn Kåre Alsaker-1/+1
2018-04-27Rename InternedString to LocalInternedString and introduce a new thread-safe ↵John Kåre Alsaker-2/+2
InternedString
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-1/+1
2018-04-26Rename rustc_back::target to rustc_target::spec.Irina Popa-3/+3
2018-04-24Make Binder's field private and clean up its usageTyler Mandry-1/+1
2018-04-23in unit tests, use `note` to dump multiple program clausesNiko Matsakis-4/+4
(rather than issuing multiple errors) Also, reorder so that the annotations are considered "used" when the lint runs.
2018-04-19add EDITIONS_NAME_LIST, make edition tracked, enforce that only stable ↵Kurtis Nusbaum-1/+1
editions are allowed to be used on non-nightly builds
2018-04-18Auto merge of #49349 - Zoxc:sync-errors, r=michaelwoeristerbors-5/+5
Make Handler more thread-safe The use of `code_emitted` to suppress extended explanations is not thread safe. I'm not sure why we keep the documentation for errors outside `diagnostics.rs` anyway. It would be better to add a `teach` method to `DiagnosticsBuilder`, so instead of: ``` if self.tcx.sess.teach(&err.get_code().unwrap()) { err.note("..."); } ``` we'd use `err.teach("...")` cc @estebank r? @michaelwoerister
2018-04-18Auto merge of #49969 - mark-i-m:allocator_fmt, r=estebankbors-526/+610
Various rustfmt and commenting changes These are factored out of #49320 There aren't actually any changes in functionality, just rustfmt and doccomments.
2018-04-17run rustfmt on rustc_driver/driver.rsMark Mansi-526/+610
2018-04-17Make Handler more thread-safeJohn Kåre Alsaker-5/+5
2018-04-17Use #[no_debug] to work around LLVM problem with rustc_driver::get_trans::LOAD.Michael Woerister-0/+4
2018-04-17Auto merge of #49882 - Zoxc:sync-misc2, r=michaelwoeristerbors-2/+6
More thread-safety changes r? @michaelwoerister
2018-04-17Rollup merge of #49606 - varkor:pipe-repair, r=alexcrichtonkennytm-0/+12
Prevent broken pipes causing ICEs As the private `std::io::print_to` panics if there is an I/O error, which is used by `println!`, the compiler would ICE if one attempted to use a broken pipe (e.g. `rustc --help | false`). This introduces a new (private) macro `try_println!` which allows us to avoid this. As a side note, it seems this macro might be useful publicly (and actually there seems to be [a crate specifically for this purpose](https://crates.io/crates/try_print/)), though that can probably be left for a future discussion. One slight alternative approach would be to simply early exit without an error (i.e. exit code `0`), which [this comment](https://github.com/rust-lang/rust/issues/34376#issuecomment-377822526) suggests is the usual approach. I've opted not to take that approach initially, because I think it's more helpful to know when there is a broken pipe. Fixes #34376.
2018-04-16Auto merge of #49433 - varkor:metadata-skip-mir-opt, r=michaelwoeristerbors-1/+1
Skip MIR encoding for cargo check Resolves #48662. r? @michaelwoerister
2018-04-15Add misc timingsJohn Kåre Alsaker-2/+6
2018-04-14Rollup merge of #49913 - varkor:RegionParameterDef-InternedString, ↵kennytm-1/+1
r=petrochenkov Use InternedString rather than Name for RegionParameterDef This makes it consistent with `TypeParameterDef`.
2018-04-13Use InternedString rather than Name for RegionParameterDefvarkor-1/+1
This makes it consistent with TypeParameterDef.
2018-04-12Auto merge of #49558 - Zoxc:sync-misc, r=michaelwoeristerbors-3/+4
Even more thread-safety changes r? @michaelwoerister
2018-04-11Rollup merge of #49525 - varkor:sort_by_cached_key-conversion, r=scottmcmkennytm-8/+3
Use sort_by_cached_key where appropriate A follow-up to https://github.com/rust-lang/rust/pull/48639, converting various slice sorting calls to `sort_by_cached_key` when the key functions are more expensive.
2018-04-11Prevent EPIPE causing ICEs in rustc and rustdocvarkor-0/+12
2018-04-11Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichtonbors-1/+0
Move deny(warnings) into rustbuild This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-11Auto merge of #49695 - michaelwoerister:unhygienic-ty-min, r=nikomatsakisbors-1/+1
Use InternedString instead of Symbol for type parameter types (2) Reduced alternative to #49266. Let's see if this causes a performance regression.
2018-04-10Make Session.crate_types thread-safeJohn Kåre Alsaker-1/+2
2018-04-10Make Session.crate_disambiguator thread-safeJohn Kåre Alsaker-1/+1
2018-04-10Make recursion_limit and type_length_limit thread-safeJohn Kåre Alsaker-1/+1
2018-04-09Convert sort_by to sort_by_cached_keyvarkor-8/+3
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-06Use `Ident` instead of `Name` in `MetaItem`Vadim Petrochenkov-1/+1
2018-04-06Use `Span` instead of `SyntaxContext` in `Ident`Vadim Petrochenkov-2/+2
2018-04-06Fix error in rustc_driver::test.Michael Woerister-1/+1
2018-04-04Add len() method to OutputTypesvarkor-1/+1
2018-04-04Auto merge of #48575 - ishitatsuyuki:unix-no-thread, r=alexcrichtonbors-8/+49
rustc_driver: get rid of the extra thread **Do not rollup** We can alter the stack size afterwards on Unix. Having a separate thread causes poor debugging experience when interrupting with signals. I have to get the backtrace of the all thread, as the main thread is waiting to join doing nothing else. This patch allows me to just run `bt` to get the desired backtrace.
2018-03-31Auto merge of #49201 - Phlosioneer:add-trivial-size-hints, r=SimonSapinbors-0/+7
Implement some trivial size_hints for various iterators This also implements ExactSizeIterator where applicable. Addresses most of the Iterator traits mentioned in #23708. I intend to do more, but I don't want to make the PR too large.
2018-03-29Auto merge of #49313 - sgrif:sg-revert-stuff, r=nikomatsakisbors-2/+1
Remove universes from `ty::ParamEnv` This change was never meant to land. #48407 takes an alternate approach. However, that PR is now blocked on some issues with canonicalization, and rebasing these reverts gets harder each time, so let's just get this bit out of the way now. r? @nikomatsakis
2018-03-28[incremental] Don't panic if decoding the cache failsWesley Wiser-1/+3
If the cached data can't be loaded from disk, just issue a warning to the user so they know why compilation is taking longer than usual but don't fail the entire compilation since we can recover by ignorning the on disk cache. In the same way, if the disk cache can't be deserialized (because it has been corrupted for some reason), report the issue as a warning and continue without failing the compilation. `Decodable::decode()` tends to panic with various errors like "entered unreachable code" or "index out of range" if the input data is corrupted. Work around this by catching panics from the `decode()` calls when joining the thread and continuing without the cached data. Fixes #48847
2018-03-25Rollup merge of #49046 - Zoxc:error-summary, r=michaelwoeristerkennytm-24/+30
Always print `aborting due to n previous error(s)` r? @michaelwoerister
2018-03-23Revert "fix tests in `librustc_driver`"Sean Griffin-2/+1
This reverts commit 17df455c2eda9717e2d7ff2f43809b553852d7e6.