| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-02-17 | Overhaul the `intravisit::Map` trait. | Nicholas Nethercote | -2/+2 | |
| First of all, note that `Map` has three different relevant meanings. - The `intravisit::Map` trait. - The `map::Map` struct. - The `NestedFilter::Map` associated type. The `intravisit::Map` trait is impl'd twice. - For `!`, where the methods are all unreachable. - For `map::Map`, which gets HIR stuff from the `TyCtxt`. As part of getting rid of `map::Map`, this commit changes `impl intravisit::Map for map::Map` to `impl intravisit::Map for TyCtxt`. It's fairly straightforward except various things are renamed, because the existing names would no longer have made sense. - `trait intravisit::Map` becomes `trait intravisit::HirTyCtxt`, so named because it gets some HIR stuff from a `TyCtxt`. - `NestedFilter::Map` assoc type becomes `NestedFilter::MaybeTyCtxt`, because it's always `!` or `TyCtxt`. - `Visitor::nested_visit_map` becomes `Visitor::maybe_tcx`. I deliberately made the new trait and associated type names different to avoid the old `type Map: Map` situation, which I found confusing. We now have `type MaybeTyCtxt: HirTyCtxt`. | ||||
| 2024-10-19 | Fix tests | Michael Goulet | -1/+1 | |
| 2024-10-03 | Merge commit 'aa0d551351a9c15d8a95fdb3e2946b505893dda8' into ↵ | Philipp Krones | -2/+2 | |
| clippy-subtree-update | ||||
| 2024-09-24 | Merge commit '7901289135257ca0fbed3a5522526f95b0f5edba' into ↵ | Philipp Krones | -2/+2 | |
| clippy-subtree-update | ||||
| 2024-09-06 | Make `Ty::boxed_ty` return an `Option` | Pavel Grigorenko | -2/+2 | |
| 2024-06-13 | Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into ↵ | Philipp Krones | -46/+17 | |
| clippy-subtree-update | ||||
| 2024-05-30 | Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into ↵ | Philipp Krones | -6/+10 | |
| clippy-subtree-update | ||||
| 2024-05-21 | Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into ↵ | Philipp Krones | -0/+1 | |
| clippy-subtree-update | ||||
| 2024-05-02 | Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into ↵ | Philipp Krones | -1/+7 | |
| clippy-subtree-update | ||||
| 2024-04-04 | Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into ↵ | Philipp Krones | -6/+5 | |
| clippy-subtree-update | ||||
| 2024-01-11 | Merge commit '26ac6aab023393c94edf42f38f6ad31196009643' | Philipp Krones | -0/+1 | |
| 2023-11-16 | Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup | Philipp Krones | -32/+30 | |
| 2023-07-14 | refactor(rustc_middle): Substs -> GenericArg | Mahdi Dibaiee | -1/+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-14 | s/eval_usize/eval_target_usize/ for clarity | Oli Scherer | -1/+1 | |
| 2022-09-05 | separate the receiver from arguments in HIR under /clippy | Takayuki Maeda | -3/+3 | |
| 2022-03-14 | Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup | flip1995 | -0/+87 | |
| 2022-02-15 | Overhaul `TyS` and `Ty`. | Nicholas Nethercote | -2/+2 | |
| Specifically, change `Ty` from this: ``` pub type Ty<'tcx> = &'tcx TyS<'tcx>; ``` to this ``` pub struct Ty<'tcx>(Interned<'tcx, TyS<'tcx>>); ``` There are two benefits to this. - It's now a first class type, so we can define methods on it. This means we can move a lot of methods away from `TyS`, leaving `TyS` as a barely-used type, which is appropriate given that it's not meant to be used directly. - The uniqueness requirement is now explicit, via the `Interned` type. E.g. the pointer-based `Eq` and `Hash` comes from `Interned`, rather than via `TyS`, which wasn't obvious at all. Much of this commit is boring churn. The interesting changes are in these files: - compiler/rustc_middle/src/arena.rs - compiler/rustc_middle/src/mir/visit.rs - compiler/rustc_middle/src/ty/context.rs - compiler/rustc_middle/src/ty/mod.rs Specifically: - Most mentions of `TyS` are removed. It's very much a dumb struct now; `Ty` has all the smarts. - `TyS` now has `crate` visibility instead of `pub`. - `TyS::make_for_test` is removed in favour of the static `BOOL_TY`, which just works better with the new structure. - The `Eq`/`Ord`/`Hash` impls are removed from `TyS`. `Interned`s impls of `Eq`/`Hash` now suffice. `Ord` is now partly on `Interned` (pointer-based, for the `Equal` case) and partly on `TyS` (contents-based, for the other cases). - There are many tedious sigil adjustments, i.e. adding or removing `*` or `&`. They seem to be unavoidable. | ||||
| 2022-01-21 | Remove a span from hir::ExprKind::MethodCall | Cameron Steffen | -1/+1 | |
| 2021-12-30 | Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup | flip1995 | -1/+1 | |
| 2021-12-06 | Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup | flip1995 | -1/+7 | |
| 2021-10-02 | Make diangostic item names consistent | Cameron Steffen | -1/+1 | |
| 2021-09-08 | Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup | flip1995 | -3/+3 | |
| 2021-04-27 | Merge commit '7c7683c8efe447b251d6c5ca6cce51233060f6e8' into clippyup | flip1995 | -3/+1 | |
| 2021-04-08 | Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup | flip1995 | -1/+1 | |
| 2021-03-25 | Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup | flip1995 | -0/+77 | |
