summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/query
AgeCommit message (Collapse)AuthorLines
2020-10-22Retire rustc_dep_node_try_load_from_on_disk_cache.Camille GILLOT-1/+23
2020-10-22Retire rustc_dep_node_force.Camille GILLOT-13/+36
2020-10-22Unify query name and node name.Camille GILLOT-3/+3
2020-10-22Remove unused category from macros.Camille GILLOT-16/+6
2020-10-22Remove unused ProfileCategory.Camille GILLOT-3/+0
2020-10-22Auto merge of #77871 - Julian-Wollersberger:less-query-context, r=oli-obkbors-18/+21
Make fewer types generic over QueryContext While trying to refactor `rustc_query_system::query::QueryContext` to make it dyn-safe, I noticed some smaller things: * QueryConfig doesn't need to be generic over QueryContext * ~~The `kind` field on QueryJobId is unused~~ * Some unnecessary where clauses * Many types in `job.rs` where generic over `QueryContext` but only needed `QueryContext::Query`. If handle_cycle_error() could be refactored to not take `error: CycleError<CTX::Query>`, all those bounds could be removed as well. Changing `find_cycle_in_stack()` in job.rs to not take a `tcx` argument is the only functional change here. Everything else is just updating type signatures. (aka compile-error driven development ^^) ~~Currently there is a weird bug where memory usage suddenly skyrockets when running UI tests. I'll investigate that tomorrow. A perf run probably won't make sense before that is fixed.~~ EDIT: `kind` actually is used by `Eq`, and re-adding it fixed the memory issue.
2020-10-19Remove <CTX: QueryContext> in a bunch of places.Julian Wollersberger-15/+18
It was only needed by `find_cycle_in_stack()` in job.rs, but needed to be forwarded through dozens of types.
2020-10-16Rollup merge of #77493 - ↵Dylan DPC-3/+10
hosseind88:ICEs_should_always_print_the_top_of_the_query_stack, r=oli-obk ICEs should always print the top of the query stack see #76920
2020-10-14Remove unused code from rustc_middleest31-23/+0
2020-10-13Replace absolute paths with relative onesest31-2/+2
Modern compilers allow reaching external crates like std or core via relative paths in modules outside of lib.rs and main.rs.
2020-10-12Remove generic argument from `QueryConfig`.Julian Wollersberger-3/+3
2020-10-09change condition for end of query stack messagehosseind88-4/+4
2020-10-09fix show we're just showing... message instead of the end of query stack ↵hosseind75-3/+0
message when RUST_BACKTRACE=0
2020-10-09show a message when we are showing limited slice of query stackhosseind75-0/+3
2020-10-09change approach and run ui testshosseind75-5/+1
2020-10-09run full query stack print just when RUST_BACKTRACE is sethosseind75-1/+5
2020-10-09ICEs should print the top of the query stackhosseind75-13/+1
2020-10-09rebase with masterhosseind75-0/+8
2020-10-09fix show we're just showing... message instead of the end of query stack ↵hosseind75-1/+5
message when RUST_BACKTRACE=0
2020-10-09run full query stack print just when RUST_BACKTRACE is sethosseind75-3/+7
2020-10-09ICEs should print the top of the query stackhosseind75-1/+4
2020-09-25Address review commentmarmeladema-4/+6
2020-09-25Fix profiling query key creationmarmeladema-19/+12
2020-09-25Rename `DefPathData::get_name()` to `DefPathData::name()`marmeladema-1/+1
2020-09-25Move from {{closure}}#0 syntax to {closure#0} for (def) path componentsmarmeladema-11/+19
2020-09-19Unify the names of const eval queries and their return typesOliver Scherer-1/+1
2020-09-18support const_evaluatable_checked across crate boundariesBastian Kauschke-0/+6
2020-09-18use abstract consts when unifying ConstKind::UnevaluatedBastian Kauschke-0/+16
2020-08-30mv compiler to compiler/mark-0/+2695