about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-44264/+0
2020-03-30Auto merge of #70449 - ecstatic-morse:visit-body, r=oli-obkbors-7/+7
Make `Visitor::visit_body` take a plain `&Body` `ReadOnlyBodyAndCache` has replaced `&Body` in many parts of the code base that don't care about basic block predecessors. This includes the MIR `Visitor` trait, which I suspect resulted in many unnecessary changes in #64736. This reverts part of that PR to reduce the number of places where we need to pass a `ReadOnlyBodyAndCache`. In the long term, we should either give `ReadOnlyBodyAndCache` more ergonomic name and replace all uses of `&mir::Body` with it at the cost of carrying an extra pointer everywhere, or use it only in places that actually need access to the predecessor cache. Perhaps there is an even nicer alternative. r? @Nashenas88
2020-03-29Rollup merge of #69702 - anyska:tylayout-rename, r=oli-obkDylan DPC-33/+43
Rename TyLayout to TyAndLayout.
2020-03-29Make `Visitor::visit_body` take a simple `Body`Dylan MacKenzie-7/+7
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-28use machine_ prefix for target usize/isizeRalf Jung-2/+2
2020-03-28rename Scalar::{ptr_null -> null_ptr}Ralf Jung-1/+1
2020-03-28Auto merge of #70483 - Centril:rollup-slli4yf, r=Centrilbors-15/+21
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-1510/+93
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-15/+21
2020-03-27Implement HashStable directly.Camille GILLOT-2/+0
2020-03-27Cleanups.Camille GILLOT-10/+10
2020-03-27Remove the QueryGetter trait.Camille GILLOT-2/+2
2020-03-27Auto merge of #69470 - mati865:deps, r=Mark-Simulacrumbors-1/+1
Upgrade rustc and bootstrap dependencies
2020-03-27Auto merge of #68404 - Amanieu:llvm-asm, r=estebankbors-7/+7
Rename asm! to llvm_asm! As per https://github.com/rust-lang/rfcs/pull/2843, this PR renames `asm!` to `llvm_asm!`. It also renames the compiler's internal `InlineAsm` data structures to `LlvmInlineAsm` in preparation for the new `asm!` functionality specified in https://github.com/rust-lang/rfcs/pull/2850. This PR doesn't actually deprecate `asm!` yet, it just makes it redirect to `llvm_asm!`. This is necessary because we first need to update the submodules (in particular stdarch) to use `llvm_asm!`.
2020-03-27Rollup merge of #70344 - Centril:hir-pretty, r=eddybDylan DPC-41/+24
Decouple `rustc_hir::print` into `rustc_hir_pretty` High level summary: - The HIR pretty printer, `rustc_hir::print` is moved into a new crate `rustc_hir_pretty`. - `rustc_ast_pretty` and `rustc_errors` are dropped as `rustc_hir` dependencies. - The dependence on HIR pretty is generally reduced, leaving `rustc_save_analysis`, `rustdoc`, `rustc_metadata`, and `rustc_driver` as the remaining clients. The main goal here is to reduce `rustc_hir`'s dependencies and its size such that it can start and finish earlier, thereby working towards https://github.com/rust-lang/rust/issues/65031. r? @Zoxc
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-7/+7
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26Upgrade rustc and bootstrap dependenciesMateusz Mikuła-1/+1
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-26Retire DepGraphSafe and HashStableContext.Camille GILLOT-28/+0
2020-03-26Rustfmt.Camille GILLOT-2/+7
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/+118
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/+18
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 #70375 - RalfJung:check-defined-err, r=oli-obkMazdak Farrokhzad-5/+11
avoid catching InterpError Avoid raising and then capturing `InterpError` for the definedness check. Cc https://github.com/rust-lang/rust/issues/69297 r? @oli-obk
2020-03-26Rollup merge of #69866 - estebank:guess_head_span, r=eddybMazdak Farrokhzad-3/+6
Rename `def_span` to `guess_head_span` r? @eddyb
2020-03-25Rename `def_span` to `guess_head_span`Esteban Küber-3/+6
2020-03-26Revert previous commit and make the optimisation in a nicer wayOlivier Goffart-19/+6
2020-03-26avoid catching InterpErrorRalf Jung-5/+11
2020-03-25Rollup merge of #69700 - anyska:layout-details-rename, r=oli-obkDylan DPC-53/+46
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