about summary refs log tree commit diff
path: root/src/librustc_interface/queries.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-397/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-1/+1
2020-08-15replaced log with tracingGurpreet Singh-1/+1
2020-08-08Eliminate the `SessionGlobals` from `librustc_ast`.Nicholas Nethercote-1/+1
By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session`
2020-08-08Remove some unnecessary uses of `Option`.Nicholas Nethercote-1/+1
These arguments are never `None`.
2020-07-07Remove `Compiler::compile()`.Nicholas Nethercote-34/+0
It's unused.
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-05-22Use `OnceCell` instead of `Once`Dylan MacKenzie-3/+3
2020-05-11Fix clippy warningsMatthias Krüger-1/+1
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
2020-04-27Change return type of `entry_fn` query to return a `LocalDefId`marmeladema-1/+1
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-1/+1
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-5/+5
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-5/+5
2020-03-21separate out an arena for HIRMazdak Farrokhzad-2/+4
2020-03-19Refactorings to begin getting rid of rustc_codegen_utilsMark Mansi-8/+52
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-2/+2
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-1/+1
2020-02-19Split query stats into its own fileJohn Kåre Alsaker-1/+1
2020-02-06Remove the `Forest` typeJohn Kåre Alsaker-9/+9
2020-02-04Split `join_codegen_and_link()` into two stepsVictor Ding-10/+13
`join_codegen_and_link()` is split to `join_codegen()` and `link()`.
2020-01-17Rollup merge of #67791 - Zoxc:lift-interning, r=eddybDylan DPC-4/+1
Implement Lift using interners instead of in_arena r? @eddyb cc @cjgillot
2020-01-11Use Arena for interningJohn Kåre Alsaker-4/+1
2020-01-11move rustc::lint::{context, passes} to rustc_lint.Mazdak Farrokhzad-3/+2
Also do some cleanup of the interface.
2020-01-09Tweak timersJohn Kåre Alsaker-1/+0
2020-01-09Label unmarked timeJohn Kåre Alsaker-2/+13
2020-01-09Change -Z time event naming scheme and make them generic activitiesJohn Kåre Alsaker-1/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-4/+4
2020-01-05Use self profile infrastructure for -Z time and -Z time-passesJohn Kåre Alsaker-2/+2
2019-12-22Format the worldMark Rousskov-52/+50
2019-12-21Use Arena inside hir::Crate.Camille GILLOT-3/+4
2019-12-06Auto merge of #65195 - varkor:to_option, r=Centrilbors-5/+3
Rename `bool::then_*` to `bool::to_option_*` and use where appropriate Name change following https://github.com/rust-lang/rfcs/pull/2757. Also try it out throughout the compiler in places I think makes the code more readable.
2019-12-06Rename to `then_some` and `then`varkor-1/+1
2019-12-06Use `to_option` in various placesvarkor-5/+3
2019-12-06Fix Query type docsÖmer Sinan Ağacan-2/+2
`give` no longer exists, `compute` is used to generate query results now.
2019-11-27Allocate HIR Forest on arena.Camille GILLOT-3/+1
2019-11-27Misc renames.Camille GILLOT-3/+3
2019-11-27Simplify handling of AllArenas.Camille GILLOT-3/+3
2019-11-27Rename BoxedGlobalCtxt.Camille GILLOT-3/+3
2019-11-27Rename lifetimes.Camille GILLOT-13/+13
2019-11-26Move local Arena to Queries.Camille GILLOT-1/+6
2019-11-26Have Queries own the GlobalCtxt.Camille GILLOT-18/+35
The construction of the GlobalCtxt is moved from a generator's stack to the Queries struct. Since the GlobalCtxt requires the HIR Forest and the arenas to live longer, those are moved into Queries the same way. The resulting handling of objects is more brittle, because consumers of the Once objects need to be careful of their initialisation.
2019-11-26Review nits.Camille GILLOT-4/+1
2019-11-25Superfluous lifetime.Camille GILLOT-2/+2
2019-11-25Pass Queries by reference.Camille GILLOT-5/+5
2019-11-25Remove wrong comment.Camille GILLOT-5/+0
2019-11-24Tidy.Camille GILLOT-1/+3
2019-11-24Move linking ouside the interface queries.Camille GILLOT-20/+44
2019-11-24Isolate compiler queries inside the Queries type.Camille GILLOT-41/+76
2019-11-24rustc_plugin: Remove support for syntactic pluginsVadim Petrochenkov-5/+4
2019-10-24rustc_interface: Remove `ExpansionResult` and some `Steal`sVadim Petrochenkov-7/+10