| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-12 | Move some methods from `tcx.hir()` to `tcx` | zetanumbers | -1/+1 | |
| Renamings: - find -> opt_hir_node - get -> hir_node - find_by_def_id -> opt_hir_node_by_def_id - get_by_def_id -> hir_node_by_def_id Fix rebase changes using removed methods Use `tcx.hir_node_by_def_id()` whenever possible in compiler Fix clippy errors Fix compiler Apply suggestions from code review Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> Add FIXME for `tcx.hir()` returned type about its removal Simplify with with `tcx.hir_node_by_def_id` | ||||
| 2023-11-26 | rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` ↵ | Vadim Petrochenkov | -1/+1 | |
| cleanup | ||||
| 2023-11-19 | Make regionck care about placeholders in outlives components | Michael Goulet | -0/+4 | |
| 2023-11-14 | finish `RegionKind` rename | lcnr | -3/+3 | |
| - `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam` | ||||
| 2023-11-13 | rename `ReLateBound` to `ReBound` | lcnr | -2/+2 | |
| other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound` | ||||
| 2023-07-14 | refactor(rustc_middle): Substs -> GenericArg | Mahdi Dibaiee | -18/+17 | |
| 2023-07-03 | remove TypeWellFormedFromEnv | Michael Goulet | -2/+1 | |
| 2023-06-26 | TypeWellFormedInEnv | Michael Goulet | -1/+2 | |
| 2023-06-26 | Migrate predicates_of and caller_bounds to Clause | Michael Goulet | -34/+24 | |
| 2023-06-22 | migrate inferred_outlives_of to Clause | Michael Goulet | -5/+7 | |
| 2023-06-19 | s/Clause/ClauseKind | Michael Goulet | -15/+14 | |
| 2023-06-17 | Move ConstEvaluatable to Clause | Michael Goulet | -1/+1 | |
| 2023-06-17 | Move WF goal to clause | Michael Goulet | -1/+1 | |
| 2023-06-02 | No more TyCtxt::lazy_normalization | Michael Goulet | -1/+2 | |
| 2023-05-29 | EarlyBinder::new -> EarlyBinder::bind | lcnr | -2/+2 | |
| 2023-05-28 | Make EarlyBinder's inner value private; and fix all of the resulting errors | Kyle Matsuda | -21/+27 | |
| 2023-05-28 | Replace EarlyBinder(x) with EarlyBinder::new(x) | Kyle Matsuda | -2/+2 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -1/+1 | |
| 2023-05-04 | IAT: Introduce AliasKind::Inherent | León Orell Valerian Liehr | -0/+3 | |
| 2023-05-03 | Restrict `From<S>` for `{D,Subd}iagnosticMessage`. | Nicholas Nethercote | -1/+1 | |
| Currently a `{D,Subd}iagnosticMessage` can be created from any type that impls `Into<String>`. That includes `&str`, `String`, and `Cow<'static, str>`, which are reasonable. It also includes `&String`, which is pretty weird, and results in many places making unnecessary allocations for patterns like this: ``` self.fatal(&format!(...)) ``` This creates a string with `format!`, takes a reference, passes the reference to `fatal`, which does an `into()`, which clones the reference, doing a second allocation. Two allocations for a single string, bleh. This commit changes the `From` impls so that you can only create a `{D,Subd}iagnosticMessage` from `&str`, `String`, or `Cow<'static, str>`. This requires changing all the places that currently create one from a `&String`. Most of these are of the `&format!(...)` form described above; each one removes an unnecessary static `&`, plus an allocation when executed. There are also a few places where the existing use of `&String` was more reasonable; these now just use `clone()` at the call site. As well as making the code nicer and more efficient, this is a step towards possibly using `Cow<'static, str>` in `{D,Subd}iagnosticMessage::{Str,Eager}`. That would require changing the `From<&'a str>` impls to `From<&'static str>`, which is doable, but I'm not yet sure if it's worthwhile. | ||||
| 2023-03-23 | Rename AliasEq -> AliasRelate | Michael Goulet | -1/+1 | |
| 2023-03-21 | Use local key in providers | Michael Goulet | -5/+6 | |
| 2023-03-02 | rustc_middle: Remove trait `DefIdTree` | Vadim Petrochenkov | -1/+1 | |
| This trait was a way to generalize over both `TyCtxt` and `Resolver`, but now `Resolver` has access to `TyCtxt`, so this trait is no longer necessary. | ||||
| 2023-02-17 | Add `Clause::ConstArgHasType` variant | Boxy | -0/+1 | |
| 2023-02-16 | remove bound_type_of query; make type_of return EarlyBinder; change type_of ↵ | Kyle Matsuda | -1/+1 | |
| in metadata | ||||
| 2023-02-16 | change usages of type_of to bound_type_of | Kyle Matsuda | -1/+1 | |
| 2023-02-11 | Auto merge of #107507 - BoxyUwU:deferred_projection_equality, r=lcnr | bors | -0/+1 | |
| Implement `deferred_projection_equality` for erica solver Somewhat of a revival of #96912. When relating projections now emit an `AliasEq` obligation instead of attempting to determine equality of projections that may not be as normalized as possible (i.e. because of lazy norm, or just containing inference variables that prevent us from resolving an impl). Only do this when the new solver is enabled | ||||
| 2023-02-10 | add `AliasEq` to `PredicateKind` | Boxy | -0/+1 | |
| 2023-02-09 | Change to `ReError(ErrorGuaranteed)` | Esteban Küber | -1/+1 | |
| 2023-02-09 | Introduce `ReError` | Esteban Küber | -0/+2 | |
| CC #69314 | ||||
| 2023-01-19 | even more unify Projection/Opaque in outlives code | Ali MJ Al-Nasrawy | -3/+3 | |
| 2023-01-17 | Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726 | Matthias Krüger | -5/+5 | |
| Remove double spaces after dots in comments Most of the comments do not have double spaces, so I assume these are typos. | ||||
| 2023-01-17 | Remove double spaces after dots in comments | Maybe Waffle | -5/+5 | |
| 2023-01-13 | Unify Opaque/Projection handling in region outlives code | Michael Goulet | -14/+6 | |
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -3/+3 | |
| 2022-12-13 | Combine projection and opaque into alias | Michael Goulet | -1/+1 | |
| 2022-12-13 | ProjectionTy.item_def_id -> ProjectionTy.def_id | Michael Goulet | -2/+2 | |
| 2022-11-29 | Make inferred_outlives_crate return Clause | Santiago Pastorino | -18/+8 | |
| 2022-11-25 | Introduce PredicateKind::Clause | Santiago Pastorino | -26/+32 | |
| 2022-11-21 | Add an always-ambiguous predicate to make sure that we don't accidentlally ↵ | Oli Scherer | -0/+1 | |
| allow trait resolution to prove false things during coherence | ||||
| 2022-11-13 | Store a LocalDefId in hir::GenericParam. | Camille GILLOT | -1/+1 | |
| 2022-10-29 | Rename some `OwnerId` fields. | Nicholas Nethercote | -4/+4 | |
| spastorino noticed some silly expressions like `item_id.def_id.def_id`. This commit renames several `def_id: OwnerId` fields as `owner_id`, so those expressions become `item_id.owner_id.def_id`. `item_id.owner_id.local_def_id` would be even clearer, but the use of `def_id` for values of type `LocalDefId` is *very* widespread, so I left that alone. | ||||
| 2022-09-27 | rustc_typeck to rustc_hir_analysis | lcnr | -0/+705 | |
