about summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2020-03-10Rename rustc guide to rustc dev guideSantiago Pastorino-2/+2
2020-03-10Rename rustc-guide to rustc-dev-guideSantiago Pastorino-1/+1
2020-03-08Rollup merge of #69608 - o01eg:expose-target-libdir-print, r=ehussMazdak Farrokhzad-0/+4
Expose target libdir information via print command With custom libdir it is required to have an access to library placement. See https://github.com/RazrFalcon/cargo-bloat/issues/51
2020-03-07Use ?-operator in more places (clippy::question_mark, had some false ↵Matthias Krüger-6/+1
negatives fixed recently)
2020-03-02Auto merge of #69442 - jakevossen5:master, r=Mark-Simulacrumbors-6/+10
`--explain` disambiguates no long description and invalid error codes Closes #44710 First code contribution here, so feedback is very much appreciated! cc @zackmdavis cc @Mark-Simulacrum
2020-03-01Expose target libdir information via print command.O01eg-0/+4
With custom libdir it is required to have an access to library placement.
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-3/+3
2020-02-29added `try_find_description` to distinguish no desc from invalid codeJake Vossen-6/+10
2020-02-29Make it build againVadim Petrochenkov-1/+1
2020-02-28Rollup merge of #69541 - dotdash:format, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
Remove unneeded calls to format!()
2020-02-27Remove unneeded calls to format!()Björn Steinbrink-1/+1
2020-02-27use char instead of &str for single char patternsMatthias Krüger-2/+2
2020-02-22Rename CodeMap to SourceMap follow upMaxim Zholobak-2/+2
2020-02-12Rollup merge of #69059 - ljedrz:unused_stuff, r=Dylan-DPCDylan DPC-4/+0
Remove a few unused objects As far as I can tell, these won't be missed: - `infer::region_constraints::ConstraintInfo` - `driver::DefaultCallbacks` - ~~`hir::intravisit::ParDeepVisitor`~~
2020-02-12Rollup merge of #68487 - 0dvictor:nolink, r=tmandryYuki Okushi-4/+36
[experiment] Support linking from a .rlink file Flag `-Z no-link` was previously introduced, which allows creating an `.rlink` file to perform compilation without linking. This change enables linking from an `.rlink` file. Part of Issue #64191
2020-02-12remove some unused objectsljedrz-4/+0
2020-02-11Rollup merge of #66498 - bjorn3:less_feature_flags, r=Dylan-DPCDylan DPC-5/+0
Remove unused feature gates I think many of the remaining unstable things can be easily be replaced with stable things. I have kept the `#![feature(nll)]` even though it is only necessary in `libstd`, to make regressions of it harder.
2020-02-11Support linking from a .rlink fileVictor Ding-4/+36
Flag `-Z no-link` was previously introduced, which allows creating an `.rlink` file to perform compilation without linking. This change enables linking from an `.rlink` file.
2020-02-06Move the `krate` method to Hir and remove the Krate dep nodeJohn Kåre Alsaker-3/+3
2020-02-06Add a Hir wrapper typeJohn Kåre Alsaker-5/+5
2020-02-04Remove unused feature gates from librustc_driverbjorn3-5/+0
2020-02-01pretty: injected_crate_name -> has_injected_crateMazdak Farrokhzad-2/+2
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-2/+2
2020-02-01pretty: remove ParseSess dependencyMazdak Farrokhzad-10/+8
2020-01-15Rollup merge of #68252 - matthiaskrgr:redundant_clones, r=oli-obkDylan DPC-2/+0
remove redundant clones, found by clippy
2020-01-15remove redundant clones, found by clippyMatthias Krüger-2/+0
2020-01-15Rollup merge of #68141 - euclio:replace-bindings-with-winapi, r=alexcrichtonYuki Okushi-13/+8
use winapi for non-stdlib Windows bindings
2020-01-11use winapi for non-stdlib Windows bindingsAndy Russell-13/+8
2020-01-11move rustc::lint::{context, passes} to rustc_lint.Mazdak Farrokhzad-7/+6
Also do some cleanup of the interface.
2020-01-11Rollup merge of #68043 - Zoxc:missing-timers, r=wesleywiserMazdak Farrokhzad-0/+2
Add some missing timers Based on https://github.com/rust-lang/rust/pull/67988 r? @wesleywiser
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-8/+8
2020-01-09Tweak timersJohn Kåre Alsaker-1/+0
2020-01-09Label unmarked timeJohn Kåre Alsaker-0/+3
2020-01-10Rollup merge of #68040 - sinkuu:unused, r=petrochenkovYuki Okushi-2/+0
Cleanup
2020-01-09Change -Z time event naming scheme and make them generic activitiesJohn Kåre Alsaker-1/+1
2020-01-09Remove unused dependenciesShotaro Yamada-2/+0
2020-01-08Remove `-Z continue-parse-after-error`Vadim Petrochenkov-1/+0
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-4/+5
2020-01-05Use self profile infrastructure for -Z time and -Z time-passesJohn Kåre Alsaker-3/+3
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-6/+6
2019-12-30Make things build againVadim Petrochenkov-1/+1
2019-12-24Deprecate Error::description for realDavid Tolnay-6/+1
`description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler.
2019-12-22Format the worldMark Rousskov-380/+345
2019-12-21Use Arena inside hir::Crate.Camille GILLOT-1/+1
2019-12-11Fix fallout from rebaseAaron Hill-2/+0
2019-12-11rustc: Link LLVM directly into rustc againAlex Crichton-2/+7
This commit builds on #65501 continue to simplify the build system and compiler now that we no longer have multiple LLVM backends to ship by default. Here this switches the compiler back to what it once was long long ago, which is linking LLVM directly to the compiler rather than dynamically loading it at runtime. The `codegen-backends` directory of the sysroot no longer exists and all relevant support in the build system is removed. Note that `rustc` still supports a dynamically loaded codegen backend as it did previously, it just no longer supports dynamically loaded codegen backends in its own sysroot. Additionally as part of this the `librustc_codegen_llvm` crate now once again explicitly depends on all of its crates instead of implicitly loading them through the sysroot. This involved filling out its `Cargo.toml` and deleting all the now-unnecessary `extern crate` annotations in the header of the crate. (this in turn required adding a number of imports for names of macros too). The end results of this change are: * Rustbuild's build process for the compiler as all the "oh don't forget the codegen backend" checks can be easily removed. * Building `rustc_codegen_llvm` is much simpler since it's simply another compiler crate. * Managing the dependencies of `rustc_codegen_llvm` is much simpler since it's "just another `Cargo.toml` to edit" * The build process should be a smidge faster because there's more parallelism in the main rustc build step rather than splitting `librustc_codegen_llvm` out to its own step. * The compiler is expected to be slightly faster by default because the codegen backend does not need to be dynamically loaded. * Disabling LLVM as part of rustbuild is still supported, supporting multiple codegen backends is still supported, and dynamic loading of a codegen backend is still supported.
2019-12-03Move early lint declarations to librustc_sessionMark Rousskov-1/+1
2019-12-01Rollup merge of #66896 - RalfJung:queries, r=ZoxcMazdak Farrokhzad-7/+19
pass Queries to compiler callbacks https://github.com/rust-lang/rust/pull/66791 made it impossible to access the tcx in the callbacks; this should fix that. r? @Zoxc
2019-11-30Rollup merge of #66895 - Centril:rustc_feature, r=oli-obkMazdak Farrokhzad-15/+10
Feature gating *declarations* => new crate `rustc_feature` This PR moves the data-oriented parts of feature gating into its own crate, `rustc_feature`. The parts consist of some data types as well as `accepted`, `active`, `removed`, and `builtin_attrs`. Feature gate checking itself remains in `syntax::feature_gate::check`. The parts which define how to emit feature gate errors could probably be moved to `rustc_errors` or to the new `rustc_session` crate introduced in #66878. The visitor itself could probably be moved as a pass in `rustc_passes` depending on how the dependency edges work out. The PR also contains some drive-by cleanup of feature gate checking. As such, the PR probably best read commit-by-commit. r? @oli-obk cc @petrochenkov cc @Mark-Simulacrum
2019-11-30pass Queries to compiler callbacksRalf Jung-7/+19