about summary refs log tree commit diff
path: root/src/librustc_driver/lib.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-1273/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-1/+1
2020-08-15Auto merge of #75575 - marmeladema:only-measure-drop-ast, r=eddybbors-2/+4
Only measure time spent dropping the AST r? @eddyb
2020-08-16Only measure time spent dropping the ASTmarmeladema-2/+4
2020-08-15replaced log with tracingGurpreet Singh-3/+3
2020-08-08Remove some unnecessary uses of `Option`.Nicholas Nethercote-1/+1
These arguments are never `None`.
2020-07-31Don't register a tracing dispatcher if no tracing env var was set.Oliver Scherer-0/+6
2020-07-31Make rustdoc share the logger initialization routine with rustc.Oliver Scherer-2/+9
2020-07-31Move from `log` to `tracing`Oliver Scherer-1/+5
2020-07-16apply bootstrap cfgsMark Rousskov-1/+0
2020-07-16Rollup merge of #74037 - JohnTitor:contributing-md, r=Mark-SimulacrumManish Goregaokar-2/+2
Update reference to CONTRIBUTING.md CONTRIBUTING.md has been migrated to the rustc-dev-guide but some still refer there. Update them with the appropriate links. Fixes #74253
2020-07-15Add and use more static symbols.Nicholas Nethercote-4/+2
Note that the output of `unpretty-debug.stdout` has changed. In that test the hash values are normalized from a symbol numbers to small numbers like "0#0" and "0#1". The increase in the number of static symbols must have caused the original numbers to contain more digits, resulting in different pretty-printing prior to normalization.
2020-07-07Update reference to CONTRIBUTING.mdYuki Okushi-2/+2
2020-07-02rustc_driver/pretty: avoid using TypeckTables::empty for TypedAnnotation.Eduard-Mihai Burtescu-0/+1
2020-06-19Fix -Z unpretty=everybody_loopsJoshua Nelson-0/+1
It turns out that this has not been working for who knows how long. Previously: ``` pub fn h() { 1 + 2; } ``` After this change: ``` pub fn h() { loop {} } ``` This only affected the pass when run with the command line pretty-printing option, so rustdoc was still replacing bodies with `loop {}`.
2020-06-04save_analysis: work on HIR tree instead of ASTmarmeladema-12/+4
2020-05-22Use `OnceCell` instead of `Once`Dylan MacKenzie-1/+1
2020-05-11rustc_driver::main: more informative return typeRalf Jung-2/+2
2020-05-10rustc_driver: factor out computing the exit codeRalf Jung-7/+12
2020-04-26fix more clippy warningsMatthias Krüger-3/+3
clippy::{redundant_pattern_matching, clone_on_copy, iter_cloned_collect, option_as_ref_deref, match_ref_pats}
2020-04-19Make option type descriptions non-optional.Nicholas Nethercote-20/+5
Because all options now can take a value. This simplifies some code quite a bit.
2020-04-11Depend on getopts from crates.ioLuca Barbieri-1/+1
rustc_session exports it for other crates to avoid mismatching crate versions.
2020-04-11Depend on libc from crates.ioLuca Barbieri-2/+0
2020-04-04comment refers to removed typeTshepang Lekhonkhobe-1/+0
Was removed in 51938c61f6f1b26e463f9071716f543543486e72
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-5/+2
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-21Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddybMazdak Farrokhzad-11/+7
Refactorings to get rid of rustc_codegen_utils r? @eddyb cc #45276 After this, the only modules left in `rustc_codegen_utils` are - `link`: a bunch of linking-related functions (many dealing with file names). These are mostly consumed by save analysis, rustc_driver, rustc_interface, and of course codegen. I assume they live here because we don't want a dependency of save analysis on codegen... Perhaps they can be moved to librustc? - ~`symbol_names` and `symbol_names_test`: honestly it seems odd that `symbol_names_test` is not a submodule of `symbol_names`. It seems like these could honestly live in their own crate or move to librustc. Already name mangling is exported as the `symbol_name` query.~ (move it to its own crate) I don't mind doing either of the above as part of this PR or a followup if you want.
2020-03-20remove redundant returns (clippy::needless_return)Matthias Krüger-1/+1
2020-03-19Refactorings to begin getting rid of rustc_codegen_utilsMark Mansi-11/+7
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-6/+6
2020-03-14Rollup merge of #69802 - matthiaskrgr:cl1ppy, r=Dylan-DPCYuki Okushi-6/+1
fix more clippy findings * reduce references on match patterns (clippy::match_ref_pats) * Use writeln!(fmt, "word") instead of write!(fmt, "word\n") (clippy::write_with_newline) * libtest: remove redundant argument to writeln!() (clippy::writeln_empty_string) * remove unneeded mutable references (cippy::unnecessary_mut_passed) * libtest: declare variables as floats instead of casting them (clippy::unnecessary_cast) * rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes) * call .as_deref() instead of .as_ref().map(Deref::deref) (clippy::option_as_ref_deref) * iterate over a maps values directly. (clippy::for_kv_map) * rustdoc: simplify boolean condition (clippy::nonminimal_bool) * Use ?-operator in more places (clippy::question_mark, had some false negatives fixed recently) * rustdoc: Use .any(p) instead of find(p).is_some(). (clippy::search_is_some) * rustdoc: don't call into_iter() on iterator. (clippy::identity_conversion)
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-1/+1
2020-02-29added `try_find_description` to distinguish no desc from invalid codeJake Vossen-6/+10
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-1/+1
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/+35
[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-11Support linking from a .rlink fileVictor Ding-4/+35
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-04Remove unused feature gates from librustc_driverbjorn3-5/+0
2020-01-15Rollup merge of #68141 - euclio:replace-bindings-with-winapi, r=alexcrichtonYuki Okushi-13/+5
use winapi for non-stdlib Windows bindings
2020-01-11use winapi for non-stdlib Windows bindingsAndy Russell-13/+5
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