| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-05-28 | standardize limit comparisons with `Limit` type | David Wood | -2/+3 | |
| This commit introduces a `Limit` type which is used to ensure that all comparisons against limits within the compiler are consistent (which can result in ICEs if they aren't). Signed-off-by: David Wood <david@davidtw.co> | ||||
| 2020-05-23 | iterate List by value | Bastian Kauschke | -1/+1 | |
| 2020-05-22 | Use `OnceCell` instead of `Once` | Dylan MacKenzie | -2/+1 | |
| 2020-05-21 | Rollup merge of #72055 - lcnr:predicate-kind, r=nikomatsakis | Ralf Jung | -1/+1 | |
| Intern predicates Implements the first step of https://github.com/rust-lang/compiler-team/issues/285 Renames `ty::Predicate` to `ty::PredicateKind`, which is now interned. To ease the transition, `ty::Predicate` is now a struct containing a reference to `ty::PredicateKind`. r? @ghost | ||||
| 2020-05-20 | make `to_predicate` take a `tcx` argument | Niko Matsakis | -1/+1 | |
| 2020-05-19 | auto impl`DiscriminantKind` for every type | Bastian Kauschke | -1/+4 | |
| 2020-05-12 | Remove ty::UnnormalizedProjection | Jack Huey | -2/+0 | |
| 2020-05-07 | Reintegrate chalk using chalk-solve | Jack Huey | -2/+5 | |
| 2020-05-02 | fix rustdoc warnings | Tshepang Lekhonkhobe | -1/+1 | |
| 2020-04-28 | Move a few queries to using an arena. | Camille GILLOT | -1/+1 | |
| 2020-04-28 | Use the query system to allocate. | Camille GILLOT | -2/+2 | |
| 2020-04-23 | Modify `as_local_hir_id` to return a bare `HirId` | marmeladema | -5/+5 | |
| 2020-04-23 | Modify `as_local_hir_id` to accept a `LocalDefId` instead of a `DefId` | marmeladema | -10/+10 | |
| 2020-04-23 | librustc_middle: return LocalDefId instead of DefId in local_def_id | marmeladema | -9/+9 | |
| 2020-04-22 | Rollup merge of #70970 - eddyb:trait-vs-impl-mismatch, r=oli-obk | Dylan DPC | -15/+58 | |
| Detect mistyped associated consts in `Instance::resolve`. *Based on #71049 to prevent redundant/misleading downstream errors.* Fixes #70942 by refusing to resolve an associated `const` if it doesn't have the same type in the `impl` that it does in the `trait` (which we assume had errored, and `delay_span_bug` guards against bugs). | ||||
| 2020-04-18 | Detect mistyped associated consts in `Instance::resolve`. | Eduard-Mihai Burtescu | -13/+54 | |
| 2020-04-18 | ty/instance: use `ParamEnvAnd` in the `resolve_instance` query. | Eduard-Mihai Burtescu | -2/+4 | |
| 2020-04-17 | Adjust mir-opt test and make it drop something | Jonas Schievink | -3/+3 | |
| 2020-04-17 | Make `needs_drop` less pessimistic on generators | Jonas Schievink | -0/+17 | |
| 2020-04-14 | Auto merge of #70643 - Rustin-Liu:rustin-patch-rename, r=eddyb | bors | -4/+4 | |
| Rename AssocKind::Method to AssocKind::Fn Part of https://github.com/rust-lang/rust/issues/60163. https://github.com/rust-lang/rust/issues/60163#issuecomment-607284413 | ||||
| 2020-04-14 | Rename AssocKind::Method to AssocKind::Fn | Rustin-Liu | -4/+4 | |
| Rename fn_has_self_argument to fn_has_self_parameter Rename AssocItemKind::Method to AssocItemKind::Fn Refine has_no_input_arg Refine has_no_input_arg Revert has_no_input_arg Refine suggestion_descr Move as_def_kind into AssocKind Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> Fix tidy check issue Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> | ||||
| 2020-04-13 | Use `CRATE_HIR_ID` instead of `DUMMY_HIR_ID` when appropriate. | marmeladema | -1/+1 | |
| Those usage ends up forwarded to a `ObligationClause` which uses `CRATE_HIR_ID` for dummy value as seen in `ObligationClause::dummy`. | ||||
| 2020-04-05 | Query-ify Instance::resolve | Aaron Hill | -3/+6 | |
| 2020-04-03 | Minor follow-up after renaming librustc(_middle) | Yuki Okushi | -1/+1 | |
| 2020-04-02 | Rollup merge of #70658 - davidtwco:issue-70285-still-further-specializable, ↵ | Mazdak Farrokhzad | -1/+5 | |
| r=eddyb add `STILL_FURTHER_SPECIALIZABLE` flag Contributes to #70285. This PR adds a `STILL_FURTHER_SPECIALIZABLE` flag to `TypeFlags` which replaces `needs_infer` and `needs_subst` in `Instance::resolve` and `assemble_candidates_from_impls`. r? @eddyb | ||||
| 2020-04-02 | direct imports for langitem stuff | Mazdak Farrokhzad | -1/+1 | |
| 2020-04-02 | add `STILL_FURTHER_SPECIALIZABLE` flag | David Wood | -1/+5 | |
| This commit adds a STILL_FURTHER_SPECIALIZABLE flag to `TypeFlags` which replaces `needs_infer` and `needs_subst` in `Instance::resolve` and `assemble_candidates_from_impls.` Signed-off-by: David Wood <david@davidtw.co> | ||||
| 2020-03-30 | Format | Jonas Schievink | -2/+2 | |
| 2020-03-30 | Assert that the trait ref does not need inference | Jonas Schievink | -0/+1 | |
| 2020-03-30 | Use query instead of `impl_is_default` fn | Jonas Schievink | -0/+11 | |
| 2020-03-30 | Sync `Instance::resolve` with the projection code | Jonas Schievink | -8/+38 | |
| 2020-03-30 | rustc -> rustc_middle part 3 (rustfmt) | Mazdak Farrokhzad | -6/+6 | |
| 2020-03-30 | rustc -> rustc_middle part 2 | Mazdak Farrokhzad | -13/+13 | |
| 2020-03-30 | rustc -> rustc_middle part 1 | Mazdak Farrokhzad | -1/+1 | |
| 2020-03-21 | rustc: keep upvars tupled in {Closure,Generator}Substs. | Eduard-Mihai Burtescu | -2/+2 | |
| 2020-03-20 | remove redundant returns (clippy::needless_return) | Matthias Krüger | -1/+1 | |
| 2020-03-19 | Rollup merge of #69036 - eddyb:monoshim, r=nikomatsakis | Mazdak Farrokhzad | -20/+50 | |
| rustc: don't resolve Instances which would produce malformed shims. There are some `InstanceDef` variants (shims and drop "glue") which contain a `Ty`, and that `Ty` is used in generating the shim MIR. But if that `Ty` mentions any generic parameters, the generated shim would refer to them (but they won't match the `Substs` of the `Instance`), or worse, generating the shim would fail because not enough of the type is known. Ideally we would always produce a "skeleton" of the type, e.g. `(_, _)` for dropping any tuples with two elements, or `Vec<_>` for dropping any `Vec` value, but that's a lot of work, and they would still not match the `Substs` of the `Instance` as it exists today, so `Instance` would probably need to change. By making `Instance::resolve` return `None` in the still-generic cases, we get behavior similar to specialization, where a default can only be used if there are no more generic parameters which would allow a more specialized `impl` to match. <hr/> This was found while testing the MIR inliner with #68965, because it was trying to inline shims. cc @rust-lang/wg-mir-opt | ||||
| 2020-03-16 | use direct imports for `rustc::{lint, session}`. | Mazdak Farrokhzad | -1/+2 | |
| 2020-03-15 | rustc: don't resolve Instances which would produce malformed shims. | Eduard-Mihai Burtescu | -20/+50 | |
| 2020-03-14 | Index HIR after creating TyCtxt | John Kåre Alsaker | -2/+1 | |
| 2020-03-14 | Make downstream crates compile. | Camille GILLOT | -3/+3 | |
| 2020-03-14 | Move rustc_infer::traits to new crate rustc_trait_selection. | Camille GILLOT | -0/+1 | |
| 2020-03-12 | remove lifetimes that can be elided (clippy::needless_lifetimes) | Matthias Krüger | -1/+1 | |
| 2020-03-06 | Don't redundantly repeat field names (clippy::redundant_field_names) | Matthias Krüger | -1/+1 | |
| 2020-03-06 | Auto merge of #69614 - estebank:ice-age, r=davidtwco | bors | -1/+1 | |
| `delay_span_bug` when codegen cannot select obligation Fix #69602, introduced in #60126 by letting the compiler continue past type checking after encountering errors. | ||||
| 2020-03-02 | Remove chalk integration | CAD97 | -5/+2 | |
| 2020-03-01 | `delay_span_bug` when codegen cannot select obligation | Esteban Küber | -1/+1 | |
| Fix #69602, introduced in #60126 by letting the compiler continue past type checking after encountering errors. | ||||
| 2020-02-19 | Construct `AssociatedItems` from an iterator instead of a `Vec` | Dylan MacKenzie | -2/+1 | |
| 2020-02-19 | Make lookup of associated item by name O(log n) | Dylan MacKenzie | -4/+4 | |
| 2020-02-16 | Other crates. | Camille GILLOT | -3/+4 | |
