about summary refs log tree commit diff
path: root/src/librustc_interface/queries.rs
AgeCommit message (Collapse)AuthorLines
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
2019-10-24Turn crate store into a resolver outputVadim Petrochenkov-5/+4
2019-10-24rustc: Combine resolver outputs into a single structVadim Petrochenkov-2/+1
2019-10-24rustc_metadata: Remove unnecessary use of crate store in plugin loaderVadim Petrochenkov-1/+1
2019-10-17Update API to be more compatible with plugin needsMark Rousskov-0/+7
Move to using Box<dyn Fn() -> ...> so that we can let plugins register state. This also adds a callback that'll get called from plugin registration so that Clippy and other tools can register lints without using the plugin API. The plugin API still works, but this new API is more compatible with drivers other than rustc.
2019-10-17Create lint store during plugin registrationMark Rousskov-6/+15
Remove lint store from Session
2019-09-25Remove tx_to_llvm_workers from TyCtxtMark Rousskov-15/+0
This can be kept within the codegen backend crates entirely
2019-09-19Add a comment to `Compiler::compile()`.Nicholas Nethercote-2/+7
`Compiler::compile()` is different to all the other `Compiler` methods because it lacks a `Queries` entry. It only has one call site, which is in a test that doesn't need its specific characteristics. This patch replaces that call with a call to `Compile::link()`, which is similar enough for the test's purposes. It also notes that the method is an illustrative example of how `Compiler` can be used.
2019-09-11Move call site of `dep_graph_future()`.Nicholas Nethercote-3/+11
`Compiler::register_plugins()` calls `passes::register_plugins()`, which calls `Compiler::dep_graph_future()`. This is the only way in which a `passes` function calls a `Compiler` function. This commit moves the `dep_graph_future()` call out of `passes::register_plugins()` and into `Compiler::register_plugins()`, which is a more sensible spot for it. This will delay the loading of the dep graph slightly -- from the middle of plugin registration to the end of plugin registration -- but plugin registration is fast enough (especially compared to expansion) that the impact should be neglible.
2019-09-02Remove `lower_to_hir()` call from `prepare_output()`.Nicholas Nethercote-1/+0
It's a false dependency. The result isn't used and there are no relevant side-effects.