about summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-1871/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-2/+2
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-4/+4
2020-08-08Remove some unnecessary uses of `Option`.Nicholas Nethercote-1/+1
These arguments are never `None`.
2020-08-01Remove chrono feature from tracingOliver Scherer-1/+1
2020-07-31Don't register a tracing dispatcher if no tracing env var was set.Oliver Scherer-0/+6
2020-07-31Disable log supportOliver Scherer-1/+1
2020-07-31Make rustdoc share the logger initialization routine with rustc.Oliver Scherer-2/+9
2020-07-31Move from `log` to `tracing`Oliver Scherer-3/+7
2020-07-22build: Remove unnecessary `cargo:rerun-if-env-changed` annotationsVadim Petrochenkov-7/+0
2020-07-17Auto merge of #72983 - Lezzz:rename-typeck, r=nikomatsakisbors-9/+11
Rename TypeckTables to TypeckResults. Originally suggested by @eddyb.
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-9/+11
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-10/+20
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-06Auto merge of #72927 - petrochenkov:rustc, r=Mark-Simulacrumbors-1/+1
Rename all remaining compiler crates to use the `rustc_foo` pattern libarena -> librustc_arena libfmt_macros -> librustc_parse_format libgraphviz -> librustc_graphviz libserialize -> librustc_serialize Closes https://github.com/rust-lang/rust/issues/71177 in particular.
2020-06-04save_analysis: work on HIR tree instead of ASTmarmeladema-12/+4
2020-06-02Make things build againVadim Petrochenkov-1/+1
2020-05-22Use `OnceCell` instead of `Once`Dylan MacKenzie-3/+3
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-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-1/+2
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-23librustc_middle: return LocalDefId instead of DefId in local_def_idmarmeladema-1/+1
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/+1
2020-04-04comment refers to removed typeTshepang Lekhonkhobe-1/+0
Was removed in 51938c61f6f1b26e463f9071716f543543486e72
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-6/+3
2020-03-30Use if let instead of match when only matching a single variant ↵Matthias Krüger-18/+12
(clippy::single_match) Makes code more compact and reduces nestig.
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-6/+6
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-6/+6
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2020-03-24rustc: remove rustc_hir_pretty dependency.Mazdak Farrokhzad-3/+4
2020-03-24move rustc_hir::print -> rustc_hir_prettyMazdak Farrokhzad-1/+2
2020-03-21Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddybMazdak Farrokhzad-13/+8
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-13/+8
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-8/+9
2020-03-14Index HIR after creating TyCtxtJohn Kåre Alsaker-10/+10
2020-03-14Rollup merge of #69809 - matthiaskrgr:lifetimes, r=eddybYuki Okushi-11/+11
remove lifetimes that can be elided (clippy::needless_lifetimes)
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-12remove lifetimes that can be elided (clippy::needless_lifetimes)Matthias Krüger-11/+11
2020-03-12Rollup merge of #69747 - spastorino:rename-rustc-guide, r=pietroalbiniMazdak Farrokhzad-2/+2
Rename rustc guide This is in preparation for https://github.com/rust-lang/rustc-guide/issues/470 Needs to be merged after we actually rename the guide. Have used this to rename: `git grep -l 'rustc_guide' | xargs sed -i 's/rustc_guide/rustc_dev_guide/g'` `git grep -l 'rustc-guide' | xargs sed -i 's/rustc-guide/rustc-dev-guide/g'` `git grep -l 'rustc guide' | xargs sed -i 's/rustc guide/rustc dev guide/g'`
2020-03-10rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.orgSantiago Pastorino-1/+1