about summary refs log tree commit diff
path: root/src/librustc/ty/query/keys.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-298/+0
2020-03-26Make librustc compile.Camille GILLOT-1/+1
2020-03-23query normalize_generic_arg_after_erasing_regionsBastian Kauschke-1/+12
2020-03-19rustc: use LocalDefId instead of DefIndex for query keys.Eduard-Mihai Burtescu-5/+5
2020-02-19Add an abstraction for custom query cachesJohn Kåre Alsaker-1/+50
2020-01-23Add projection query for upstream drop-glue instances.Michael Woerister-0/+9
This reduces the amount of invalidated data when new types are add to upstream crates.
2020-01-16Revert previous attempt at detecting unsatisfiable predicatesAaron Hill-9/+0
2020-01-15Rollup merge of #67914 - Aaron1011:fix/const-prop-impossible, ↵Yuki Okushi-0/+9
r=matthewjasper,oli-obk Don't run const propagation on items with inconsistent bounds Fixes #67696 Using `#![feature(trivial_bounds)]`, it's possible to write functions with unsatisfiable 'where' clauses, making them uncallable. However, the user can act as if these 'where' clauses are true inside the body of the function, leading to code that would normally be impossible to write. Since const propgation can run even without any user-written calls to a function, we need to explcitly check for these uncallable functions.
2020-01-14perf: eagerly convert literals to consts, this avoids creating loads on ↵Ben Lewis-0/+10
unevaluated consts which requires a lot of unnecessary work to evaluate them further down the line.
2020-01-13Use TraitQueryMode::Canonical when testing predicates in const propAaron Hill-0/+9
2020-01-12Split `rustc_mir::{build, hair, lints}` into their own crateMatthew Jasper-1/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-2/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-22Format the worldMark Rousskov-5/+5
2019-10-27Always use consteval to codegen caller_location.Adam Perry-0/+10
2019-10-23Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddybMazdak Farrokhzad-2/+2
Remove `InternedString` This PR removes `InternedString` by converting all occurrences to `Symbol`. There are a handful of places that need to use the symbol chars instead of the symbol index, e.g. for stable sorting; local conversions `LocalInternedString` is used in those places. r? @eddyb
2019-10-21Use `Symbol` for codegen unit names.Nicholas Nethercote-2/+2
This is a straightforward replacement except for two places where we have to convert to `LocalInternedString` to get a stable sort.
2019-10-21Remove unnecessary trait bounds from `keys::Keys`.Nicholas Nethercote-7/+2
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-21/+21
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-21/+21
2019-06-02query-ify const_fieldMark Mansi-0/+9
2019-02-26replace &'tcx Substs with SubstsRefcsmoe-2/+2
2019-02-05move librustc to 2018Mark Mansi-7/+7
2019-01-01`<&'tcx ty::Const as Deref>::deref`Oliver Scherer-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-17Use `Environment` instead of `ty::ParamEnv` in chalk contextscalexm-0/+10
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-19/+19
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-06-28Merge `ConstVal` and `ConstValue`Oliver Schneider-1/+1
2018-06-26make `Eq` a true queryNiko Matsakis-22/+7
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-0/+221