about summary refs log tree commit diff
path: root/src/librustc/ty/query
AgeCommit message (Collapse)AuthorLines
2020-03-16Unpack type arguments for QueryState.Camille GILLOT-15/+23
2020-03-16Unpack type arguments for QueryLookup.Camille GILLOT-3/+4
2020-03-16Unpack type arguments for QueryStateShard.Camille GILLOT-14/+21
2020-03-16Move impl of Queries with its definition.Camille GILLOT-49/+49
2020-03-16Inline QueryAccessor::query.Camille GILLOT-9/+2
2020-03-16Make QueryAccessor::dep_kind an associated const.Camille GILLOT-11/+6
2020-03-16Remove __query_compute module.Camille GILLOT-20/+8
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-3/+3
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-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
2020-03-10Rename rustc guide to rustc dev guideSantiago Pastorino-2/+2
2020-03-10Rename rustc-guide to rustc-dev-guideSantiago Pastorino-1/+1
2020-03-09Remove the need for `no_force`John Kåre Alsaker-92/+105
2020-03-09Move `analysis` to the query macroJohn Kåre Alsaker-28/+2
2020-03-06fix various typosMatthias Krüger-2/+2
2020-03-04cover some more nearby casesRalf Jung-1/+1
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-4/+4
2020-02-26clarify operator precedenceMatthias Krüger-1/+1
2020-02-24librustc{, codegen_ssa,infer,mir_build}: don't clone types that are copyMatthias Krüger-1/+1
2020-02-21Auto merge of #69281 - nnethercote:inline-some-encoding-decoding-methods, ↵bors-0/+1
r=Centril Inline some encoding and decoding methods. This is a small performance win. r? @Centril
2020-02-19Use a constructor function per dep node instead of an enum and a single functionJohn Kåre Alsaker-4/+2
2020-02-19Fix cache hit statsJohn Kåre Alsaker-4/+14
2020-02-19Add a stat for local DefId densityJohn Kåre Alsaker-2/+35
2020-02-19Split query stats into its own fileJohn Kåre Alsaker-96/+105
2020-02-19Add a `storage` query modifier to override the query cacheJohn Kåre Alsaker-14/+26
2020-02-19Add an abstraction for custom query cachesJohn Kåre Alsaker-123/+305
2020-02-19Make `try_get_cached` take closuresJohn Kåre Alsaker-39/+47
2020-02-19Split query execution into hot and cold pathsJohn Kåre Alsaker-103/+153
2020-02-19Inline some encoding and decoding methods.Nicholas Nethercote-0/+1
This is a small performance win.
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-16Auto merge of #67953 - cjgillot:split_infer, r=Zoxcbors-4/+4
Split librustc::{traits,infer} to a separate crate rustc_infer This is still very much work in progress. Three functions are between dimensions (at the end of `rustc::traits`), waiting for some dependency breaking scheme. Please tell me if the approach seems sound, and how you would like to split this PR up. The formatting is deliberately off, to ease rebasing. cc #65031
2020-02-16Make librustc compile.Camille GILLOT-4/+4
2020-02-15Treat NodeIs as pure values for incremental compilationJohn Kåre Alsaker-24/+1
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-157/+310
Construct query job latches on-demand r? @michaelwoerister
2020-02-12Auto merge of #68679 - matthewjasper:needs-type-op, r=varkorbors-8/+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-12Address commentsJohn Kåre Alsaker-24/+21
2020-02-12Drop the lock guardJohn Kåre Alsaker-3/+3
2020-02-12Use a counter instead of pointers to the stackJohn Kåre Alsaker-73/+105
2020-02-12Construct query job latches on-demandJohn Kåre Alsaker-149/+273
2020-02-10Rollup merge of #68932 - ↵Dylan DPC-2/+4
michaelwoerister:self-profile-generic-activity-args, r=wesleywiser self-profile: Support arguments for generic_activities. This PR adds support for recording arguments of "generic activities". The most notable use case is LLVM module names, which should be very interesting for `crox` profiles. In the future it might be interesting to add more fine-grained events for pre-query passes like macro expansion. I tried to judiciously de-duplicate existing self-profile events with `extra_verbose_generic_activity`, now that the latter also generates self-profile events. r? @wesleywiser
2020-02-10self-profile: Support arguments for generic_activities.Michael Woerister-2/+4
2020-02-06Move the `krate` method to Hir and remove the Krate dep nodeJohn Kåre Alsaker-1/+0
2020-02-06Add a `hir_krate` queryJohn Kåre Alsaker-1/+1
2020-02-02Improve needs_drop queryMatthew Jasper-8/+1
* Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty