about summary refs log tree commit diff
path: root/src/librustc/ty/query/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-191/+0
2020-03-26Make librustc compile.Camille GILLOT-0/+191
2020-03-26Move query system to librustc_query_system.Camille GILLOT-195/+0
2020-03-25Rollup merge of #70319 - lcnr:issue63695, r=eddybDylan DPC-1/+1
correctly normalize constants closes #70317 implements https://github.com/rust-lang/rust/issues/70125#issuecomment-602133708 r? eddyb cc @varkor
2020-03-23Fully qualify the path to DepKind.Camille GILLOT-8/+4
This is needed since `middle::cstore` defines another type named `DepKind`, and we should not rely on shadowing to get the right one.
2020-03-23Address review.Camille GILLOT-0/+6
2020-03-23Fallout in other crates.Camille GILLOT-13/+0
2020-03-23query normalize_generic_arg_after_erasing_regionsBastian Kauschke-1/+1
2020-03-21Rollup merge of #69910 - cjgillot:polym, r=ZoxcDylan DPC-2/+1
Avoid query type in generics There are at the moment roughly 170 queries in librustc. The way ty::query is structured, a lot of code is duplicated for each query. I suspect this to be responsible for a part of librustc'c compile time. This PR reduces the amount of code generic on the query, replacing it by code generic on the key-value types. This is split out of #69808, and should not contain the perf regression. cc #65031
2020-03-19hir: replace "items" terminology with "nodes" where appropriate.Eduard-Mihai Burtescu-1/+0
2020-03-19rustc: use LocalDefId instead of DefIndex for query keys.Eduard-Mihai Burtescu-2/+2
2020-03-17Make stuff private.Camille GILLOT-1/+1
2020-03-16Offload try_collect_active_jobs.Camille GILLOT-1/+0
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-2/+2
2020-03-14Remove `Hir` and `HirBody` dep nodesJohn Kåre Alsaker-2/+0
2020-03-14Remove `AllLocalTraitImpls`John Kåre Alsaker-1/+0
2020-03-14Update `trait_impls`John Kåre Alsaker-0/+1
2020-03-14Create Map after TyCtxtJohn Kåre Alsaker-0/+1
2020-03-14Add HIR queriesJohn Kåre Alsaker-0/+1
2020-03-09Remove the need for `no_force`John Kåre Alsaker-2/+103
2020-03-09Move `analysis` to the query macroJohn Kåre Alsaker-6/+1
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-1/+1
2020-02-19Use a constructor function per dep node instead of an enum and a single functionJohn Kåre Alsaker-1/+1
2020-02-19Split query stats into its own fileJohn Kåre Alsaker-1/+3
2020-02-19Add an abstraction for custom query cachesJohn Kåre Alsaker-0/+3
2020-02-18Rollup merge of #69181 - skinny121:const-eval-return, r=oli-obkDylan DPC-1/+1
Change const eval to just return the value As discussed in https://github.com/rust-lang/rust/pull/68505#discussion_r370956535, the type of consts shouldn't be returned from const eval queries. r? @eddyb cc @nikomatsakis
2020-02-16Make librustc compile.Camille GILLOT-4/+4
2020-02-15Change `const_field` and `const_caller_location` to return `ConstValue` ↵Ben Lewis-1/+1
instead of `Const` as the type in the returned const isn't needed.
2020-02-14Auto merge of #68693 - Zoxc:query-no-arc, r=michaelwoeristerbors-1/+3
Construct query job latches on-demand r? @michaelwoerister
2020-02-12Auto merge of #68679 - matthewjasper:needs-type-op, r=varkorbors-1/+1
Improve `ty.needs_drop` * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty * Avoid query in simple cases reopens #65918
2020-02-12Use a counter instead of pointers to the stackJohn Kåre Alsaker-1/+2
2020-02-12Construct query job latches on-demandJohn Kåre Alsaker-1/+2
2020-02-06Add a `hir_krate` queryJohn Kåre Alsaker-1/+1
2020-02-02Improve needs_drop queryMatthew Jasper-1/+1
* Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty
2020-02-01Move builtin attribute logic to new rustc_attr crate.Mazdak Farrokhzad-1/+1
For now, this is all the crate contains, but more attribute logic & types will be moved there over time.
2020-01-14perf: eagerly convert literals to consts, this avoids creating loads on ↵Ben Lewis-0/+1
unevaluated consts which requires a lot of unnecessary work to evaluate them further down the line.
2020-01-11canonicalize some lint importsMazdak Farrokhzad-1/+1
2020-01-10Initial support for recording query keys in self-profiling data.Michael Woerister-0/+3
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-5/+5
2020-01-04extract Export, ExportMap from hir::defMazdak Farrokhzad-1/+2
2020-01-04{HirId,ItemLocal}{Map,Set} -> rustc::hir & nix rustc::nodemapMazdak Farrokhzad-2/+1
2020-01-04DefId{Map,Set} -> rustc::hir::def_idMazdak Farrokhzad-2/+2
2020-01-04extract rustc::middle::codegen_fn_attrsMazdak Farrokhzad-1/+2
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-29Move reachable_set query in librustc_passes.Camille GILLOT-2/+1
2019-12-22Format the worldMark Rousskov-32/+31
2019-11-30introduce crate rustc_feature and move active, accepted, and removed to itMazdak Farrokhzad-1/+0
2019-11-12Move self-profile infrastructure to data structuresMark Rousskov-1/+1
The single dependency on queries (QueryName) can be fairly easily abstracted via a trait and this further decouples Session from librustc (the primary goal).
2019-11-08Stop returning promotables from `mir_const_qualif`Dylan MacKenzie-1/+0