about summary refs log tree commit diff
path: root/src/librustc/ty
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-24824/+0
2020-03-29Rollup merge of #69702 - anyska:tylayout-rename, r=oli-obkDylan DPC-33/+43
Rename TyLayout to TyAndLayout.
2020-03-29Auto merge of #70370 - petrochenkov:nosmatch, r=Centrilbors-1/+1
Remove attribute `#[structural_match]` and any references to it A small remaining part of https://github.com/rust-lang/rust/issues/63438.
2020-03-28Auto merge of #70483 - Centril:rollup-slli4yf, r=Centrilbors-3/+3
Rollup of 5 pull requests Successful merges: - #70345 (Remove `no_integrated_as` mode.) - #70434 (suggest `;` on expr `mac!()` which is good as stmt `mac!()`) - #70457 (non-exhastive diagnostic: add note re. scrutinee type) - #70478 (Refactor type_of for constants) - #70480 (clarify hir_id <-> node_id method names) Failed merges: r? @ghost
2020-03-27Auto merge of #70162 - cjgillot:split_query, r=Zoxcbors-1476/+75
Move the query system to a dedicated crate The query system `rustc::ty::query` is split out into the `rustc_query_system` crate. Some commits are unformatted, to ease rebasing. Based on #67761 and #69910. r? @Zoxc
2020-03-27Rename TyLayout to TyAndLayout.Ana-Maria Mihalache-33/+43
2020-03-27clarify hir_id <-> node_id method namesBastian Kauschke-3/+3
2020-03-27Cleanups.Camille GILLOT-5/+5
2020-03-27Remove the QueryGetter trait.Camille GILLOT-2/+2
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-1/+1
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26Rollup merge of #70411 - ogoffart:fix-62691, r=eddybMazdak Farrokhzad-13/+14
Fix for #62691: use the largest niche across all fields fixes #62691 (The second commit is a small optimization but it makes the code less pretty and i don't know if it is worth it.)
2020-03-26Reorganize a bit the code and add a commentOlivier Goffart-4/+10
2020-03-26Don't allow access to the Session.Camille GILLOT-3/+5
2020-03-26Rename read_query_job -> current_query_job and simplify it.Camille GILLOT-2/+2
2020-03-26Move generics on QueryCache.Camille GILLOT-3/+3
2020-03-26Rustfmt.Camille GILLOT-1/+2
2020-03-26Make librustc compile.Camille GILLOT-7/+773
2020-03-26Move query system to librustc_query_system.Camille GILLOT-2304/+0
2020-03-26Make get_query into an extension trait.Camille GILLOT-29/+55
2020-03-26Generalise Query starting.Camille GILLOT-75/+114
2020-03-26Generalise JobOwner::try_start.Camille GILLOT-18/+13
2020-03-26Generalise try_get_cached.Camille GILLOT-11/+17
2020-03-26Move HashStable bound to the trait definition.Camille GILLOT-10/+4
2020-03-26Parametrise by try_collect_active_jobs.Camille GILLOT-69/+78
2020-03-26Generalise QueryLatch.Camille GILLOT-10/+20
2020-03-26Decouple from DepKind.Camille GILLOT-12/+12
2020-03-26Generalise QueryJobId.Camille GILLOT-30/+30
2020-03-26Make QueryContext a subtrait of DepContext.Camille GILLOT-7/+9
2020-03-26Make QueryCache generic on the context.Camille GILLOT-46/+50
2020-03-26Make QueryDescription parameter a type.Camille GILLOT-25/+38
2020-03-26Make QueryAccessor argument a type.Camille GILLOT-89/+127
2020-03-26Make QueryConfig argument a type.Camille GILLOT-7/+5
2020-03-26Rollup merge of #69866 - estebank:guess_head_span, r=eddybMazdak Farrokhzad-2/+3
Rename `def_span` to `guess_head_span` r? @eddyb
2020-03-25Rename `def_span` to `guess_head_span`Esteban Küber-2/+3
2020-03-26Revert previous commit and make the optimisation in a nicer wayOlivier Goffart-19/+6
2020-03-25Rollup merge of #69700 - anyska:layout-details-rename, r=oli-obkDylan DPC-51/+44
Rename LayoutDetails to just Layout.
2020-03-25Optimize slightly by avoiding to call Niche::reserve when not neededOlivier Goffart-7/+18
2020-03-25Fix for #62691: use the largest niche across all fieldsOlivier Goffart-14/+11
fixes #62691
2020-03-25Rollup merge of #70319 - lcnr:issue63695, r=eddybDylan DPC-10/+45
correctly normalize constants closes #70317 implements https://github.com/rust-lang/rust/issues/70125#issuecomment-602133708 r? eddyb cc @varkor
2020-03-25Rollup merge of #70226 - RalfJung:checked, r=oli-obkDylan DPC-2/+2
use checked casts and arithmetic in Miri engine This is unfortunately pretty annoying because we have to cast back and forth between `u64` and `usize` more often that should be necessary, and that cast is considered fallible. For example, should [this](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/interpret/value/enum.ConstValue.html) really be `usize`? Also, `LayoutDetails` uses `usize` for field indices, but in Miri we use `u64` to be able to also handle array indexing. Maybe methods like `mplace_field` should be suitably generalized to accept both `u64` and `usize`? r? @oli-obk Cc @eddyb
2020-03-25Rename LayoutDetails to just Layout.Ana-Maria Mihalache-51/+44
2020-03-25make Size::from* methods generic in the integer type they acceptRalf Jung-2/+2
2020-03-25Auto merge of #70297 - nnethercote:clean-up-debugging-options, ↵bors-3/+1
r=michaelwoerister Clean up debugging options I found various sub-optimal things when I was looking at option handling.
2020-03-25Rollup merge of #70373 - Centril:canon-imports, r=Mark-SimulacrumMazdak Farrokhzad-23/+20
normalize some imports & prefer direct ones r? @Mark-Simulacrum
2020-03-24normalize some imports, prefer direct ones.Mazdak Farrokhzad-23/+20
2020-03-24Remove attribute `#[structural_match]` and any references to itVadim Petrochenkov-1/+1
2020-03-24improve normalize cycle errorBastian Kauschke-6/+4
2020-03-24move ModifiedStatic error to ConstEval errors, and generally adjust ↵Ralf Jung-0/+1
terminology from "static" to "global" where appropriate
2020-03-24Remove `-Z incremental-queries`.Nicholas Nethercote-3/+1
Because it uses `parse_bool` and defaults to true, it is actually impossible to set it to false. And it hasn't been experimental for some time now.
2020-03-24Rollup merge of #70277 - matthewjasper:remove-closurebound, r=nikomatsakisMazdak Farrokhzad-19/+1
Remove `ReClosureBound` We now substitute external names for regions in the query response. r? @nikomatsakis