about summary refs log tree commit diff
path: root/compiler/rustc_driver
AgeCommit message (Collapse)AuthorLines
2021-09-07Move the dataflow framework to its own crate.Camille GILLOT-1/+1
2021-09-02Remove print_fuel_crate field of Sessionbjorn3-2/+2
2021-08-09Reduce verbosity of RUSTC_LOGjackh726-3/+0
2021-08-02Auto merge of #87535 - lf-:authors, r=Mark-Simulacrumbors-1/+0
rfc3052 followup: Remove authors field from Cargo manifests Since RFC 3052 soft deprecated the authors field, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information for contributors, we may as well remove it from crates in this repo.
2021-07-30Rollup merge of #87553 - bjorn3:fix_hotplug_codegen_version, r=wesleywiserYuki Okushi-7/+1
Fix typo in rustc_driver::version This caused rustc `-Zcodegen-backend=foo.so -vV` to look for `oo.so` instead of `foo.so`
2021-07-29rfc3052: Remove authors field from Cargo manifestsJade-1/+0
Since RFC 3052 soft deprecated the authors field anyway, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information, we should remove it from crates in this repo.
2021-07-29Use strip_prefixbjorn3-7/+1
2021-07-28Fix typo in rustc_driver::versionbjorn3-1/+1
This caused rustc -Zcodegen-backend=foo.so -vV to look for oo.so instead of foo.so
2021-07-24Support -Z unpretty=thir-tree againSmitty-3/+14
2021-07-02Auto merge of #80182 - in42:stack_trace, r=tmandrybors-0/+50
Implement printing of stack traces on LLVM segfaults and aborts Implement #79153 Based on discussion, try to extend the rust_backtrace=1 feature to handle segfault or aborts in the llvm backend
2021-07-02Use signal handler only on supported platformsTyler Mandry-37/+42
2021-07-01Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrumbors-2/+0
Remove unused dependencies from compiler crates Various compiler crates have dependencies that they don't appear to use. I used some scripting to detect such dependencies, filtered them based on some manual review, and removed those that do indeed appear to be entirely unused.
2021-07-01Auto merge of #86757 - JohnTitor:rollup-acevhz7, r=JohnTitorbors-4/+13
Rollup of 8 pull requests Successful merges: - #85504 (the foundation owns rust trademarks) - #85520 (Fix typo and improve documentation for E0632) - #86680 (Improve error for missing -Z with debugging option) - #86728 (Check node kind to avoid ICE in `check_expr_return()`) - #86740 (copy rust-lld as ld in dist) - #86746 (Fix rustdoc query type filter) - #86750 (Test cross-crate usage of `feature(const_trait_impl)`) - #86755 (alloc: `RawVec<T, A>::shrink` can be in `no_global_oom_handling`.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-07-01Rollup merge of #86680 - camsteffen:dbg-opt-error, r=petrochenkovYuki Okushi-4/+13
Improve error for missing -Z with debugging option Before: ```text ❯ rustc --unpretty=hir error: Unrecognized option: 'unpretty' ``` After: ```text ❯ rustc --unpretty=hir error: Unrecognized option: 'unpretty'. Did you mean `-Z unpretty`? ```
2021-06-30Fix AST pretty.Camille GILLOT-2/+2
2021-06-30Move AST crate.Camille GILLOT-9/+2
2021-06-30Add suggestion for missing compile flag groupCameron Steffen-4/+13
2021-06-26Use `Option::map()` instead of `if let`Fabian Wolff-10/+6
2021-06-26Fix ICE with `-Zunpretty=hir,typed` when an expression occurs in a function ↵Fabian Wolff-16/+18
signature
2021-06-25rustc_driver: Remove unused dependencies rustc_mir_build and rustc_typeckJosh Triplett-2/+0
Unused since commit dc3eabd48700863075bd986a497fbe4f227aa33b ("Store THIR in `IndexVec`s instead of an `Arena`").
2021-06-25Auto merge of #85640 - bjorn3:custom_ice_hook, r=jackh726bors-8/+11
Allow changing the bug report url for the ice hook cc https://github.com/bjorn3/rustc_codegen_cranelift/issues/1174
2021-06-22Teach rustc to accept lowercase error codesAris Merchant-2/+6
2021-06-16Small fixesTyler Mandry-11/+11
2021-06-16Implement printing of stack traces on LLVM segfaults and abortsVikram Pal-0/+45
2021-06-04Rustfmtbjorn3-1/+5
2021-06-04Support --version and -Cpasses=list for other codegen backendsbjorn3-4/+16
2021-06-04Allow printing the version of the default codegen backend if it isn't llvmbjorn3-7/+3
2021-06-04Turn a regular comment on Compilation into a doc commentbjorn3-1/+1
2021-05-24Don't invoke the default panic hook from report_icebjorn3-8/+11
2021-05-19Auto merge of #83842 - LeSeulArtichaut:thir-vec, r=nikomatsakisbors-14/+2
Store THIR in `IndexVec`s instead of an `Arena` This is a necessary step to store the THIR in a query: #85273. See [relevant discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/278509-project-thir-unsafeck/topic/THIR-dependent.20queries.20design). r? `@ghost` cc `@cjgillot` `@nikomatsakis`
2021-05-19Store THIR in `IndexVec`s instead of an `Arena`LeSeulArtichaut-14/+2
2021-05-12Use () for analysis.Camille GILLOT-5/+3
2021-05-12Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillotbors-114/+86
rustc_driver cleanup Best reviewed one commit at a time.
2021-05-03Run save_analysis even when analysis returned an errorbjorn3-2/+2
2021-05-02Move queries.crate_name()bjorn3-3/+3
2021-05-02Simplify make_inputbjorn3-22/+21
2021-05-02Remove unnecessary argumentbjorn3-4/+1
2021-05-02Tiny cleanupbjorn3-3/+2
2021-05-02Inline process_rlink into try_process_rlinkbjorn3-20/+17
2021-05-02Document a few thingsbjorn3-2/+12
2021-05-02Remove dummy_configbjorn3-64/+38
2021-04-06Rollup merge of #83895 - eggyal:issue-83883, r=jyn514Dylan DPC-1/+2
Add listing of lints (eg via `-W help`) to rustdoc Fixes #83883 r? `@jyn514`
2021-04-06Add listing of lints (eg via -W help) to rustdocAlan Egerton-1/+2
2021-04-06Auto merge of #81641 - bjorn3:find_codegen_backend, r=davidtwcobors-2/+2
Find codegen backends in more locations * Search in the sysroot passed using `--sysroot` in addition to the default sysroot. * Search for `librustc_codegen_$name.so` in addition to `librustc_codegen_$name-$release.so`. This combined would allow putting `librustc_codegen_cranelift.so` in the right location of a sysroot passed using `--sysroot`.
2021-03-30Merge two consecutive tcx.analysis() callsbjorn3-11/+7
2021-03-27Address review commentsJoshua Nelson-4/+3
- Add back `HirIdVec`, with a comment that it will soon be used. - Add back `*_region` functions, with a comment they may soon be used. - Remove `-Z borrowck_stats` completely. It didn't do anything. - Remove `make_nop` completely. - Add back `current_loc`, which is used by an out-of-tree tool. - Fix style nits - Remove `AtomicCell` with `cfg(parallel_compiler)` for consistency.
2021-03-27Remove (lots of) dead codeJoshua Nelson-14/+7
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
2021-03-24Auto merge of #83050 - osa1:issue83048, r=matthewjasperbors-23/+30
Run analyses before thir-tree dumps Fixes #83048
2021-03-22Change `-W help` to display edition level.Eric Huss-1/+6
2021-03-15Add `rustc_interface::interface::Config::parse_sess_created`hyd-dev-0/+2