| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-12 | Move some methods from `tcx.hir()` to `tcx` | zetanumbers | -2/+2 | |
| 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-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -2/+2 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-11-20 | Reduce exposure of some items. | Nicholas Nethercote | -1/+1 | |
| 2023-11-15 | Re-format code with new rustfmt | Mark Rousskov | -5/+1 | |
| 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-10-20 | s/Generator/Coroutine/ | Oli Scherer | -2/+2 | |
| 2023-10-20 | Adjust imports | Michael Goulet | -1/+1 | |
| 2023-10-13 | Format all the let chains in compiler | Michael Goulet | -10/+24 | |
| 2023-09-29 | a small wf and clause cleanup | lcnr | -5/+4 | |
| 2023-09-23 | Remove GeneratorWitness and rename GeneratorWitnessMIR. | Camille GILLOT | -7/+1 | |
| 2023-09-21 | Record asyncness span in HIR | Michael Goulet | -2/+5 | |
| 2023-09-20 | remove `impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for ↵ | Ziru Niu | -8/+5 | |
| PolyProjectionPredicate<'tcx>` | ||||
| 2023-08-01 | Fix a comment | Michael Goulet | -1/+2 | |
| 2023-08-01 | don't create a predicate for just a comparison | Michael Goulet | -4/+10 | |
| 2023-08-01 | Convert adt_sized_constraint to early-binder, use list | Michael Goulet | -4/+7 | |
| 2023-07-31 | Rollup merge of #114267 - compiler-errors:rpitit-opaque-bounds, r=spastorino | Matthias Krüger | -2/+4 | |
| Map RPITIT's opaque type bounds back from projections to opaques An RPITIT in a program's AST is eventually translated into both a projection GAT and an opaque. The opaque is used for default trait methods, like: ``` trait Foo { fn bar() -> impl Sized { 0i32 } } ``` The item bounds for both the projection and opaque are identical, and both have a *projection* self ty. This is mostly okay, since we can normalize this projection within the default trait method body to the opaque, but it does two things: 1. it leads to bugs in places where we don't normalize item bounds, like `deduce_future_output_from_obligations` 2. it leads to extra match arms that are both suspicious looking and also easy to miss This PR maps the opaque type bounds of the RPITIT's *opaque* back to the opaque's self type to avoid this quirk. Then we can fix the UI test for #108304 (1.) and also remove a bunch of match arms (2.). Fixes #108304 r? `@spastorino` | ||||
| 2023-07-31 | We don't need impl_trait_in_trait_parent_fn anymore | Michael Goulet | -2/+4 | |
| 2023-07-30 | Don't install default projection bound for RPITITs | Michael Goulet | -1/+3 | |
| 2023-07-27 | Remove `constness` from `ParamEnv` | Deadbeef | -77/+1 | |
| 2023-07-17 | Rename arg_iter to iter_instantiated | Michael Goulet | -2/+2 | |
| 2023-07-17 | Remove `instance_def_size_estimate` query. | Nicholas Nethercote | -17/+0 | |
| It doesn't seem worthwhile now that `MonoItem::size_estimate` is called much less often. | ||||
| 2023-07-14 | refactor(rustc_middle): Substs -> GenericArg | Mahdi Dibaiee | -15/+13 | |
| 2023-07-08 | Replace RPITIT current impl with new strategy that lowers as a GAT | Santiago Pastorino | -8/+2 | |
| 2023-07-06 | add helper methods for accessing struct tail | Lukas Markeffsky | -1/+1 | |
| 2023-07-05 | Move `TyCtxt::mk_x` to `Ty::new_x` where applicable | Boxy | -2/+2 | |
| 2023-07-04 | Auto merge of #113303 - compiler-errors:yeet-chalk, r=lcnr | bors | -117/+1 | |
| Remove chalk support from the compiler Removes chalk (`-Ztrait-solver=chalk`) from the compiler and prunes any dead code resulting from this, mainly: * Remove the chalk compatibility layer in `compiler/rustc_traits/src/chalk` * Remove the chalk flag `-Ztrait-solver=chalk` and its `TraitEngine` implementation * Remove `TypeWellFormedFromEnv` (and its many `bug!()` match arms) * Remove the chalk migration mode from compiletest * Remove the `chalkify` UI tests (do we want to keep any of these, but migrate them to `-Ztrait-solver=next`??) Fulfills rust-lang/types-team#93. r? `@jackh726` | ||||
| 2023-07-03 | Remove chalk from the compiler | Michael Goulet | -117/+1 | |
| 2023-06-30 | RPITITs inherit method predicates | Michael Goulet | -18/+1 | |
| 2023-06-29 | Do not remove previously added predicates in param_env, extend them instead | Santiago Pastorino | -1/+3 | |
| 2023-06-26 | TypeWellFormedInEnv | Michael Goulet | -10/+7 | |
| 2023-06-26 | Migrate predicates_of and caller_bounds to Clause | Michael Goulet | -10/+11 | |
| 2023-06-02 | Separate AnonConst from ConstBlock in HIR. | Camille GILLOT | -0/+1 | |
| 2023-06-01 | Rename `impl_defaultness` to `defaultness` | Deadbeef | -3/+3 | |
| 2023-05-30 | Rollup merge of #112060 - lcnr:early-binder, r=jackh726 | Nilstrieb | -1/+1 | |
| `EarlyBinder::new` -> `EarlyBinder::bind` for consistency with `Binder::bind`. it may make sense to also add `EarlyBinder::dummy` in places where we know that no parameters exist, but I left that out of this PR. r? `@jackh726` `@kylematsuda` | ||||
| 2023-05-29 | Rename `tcx.mk_re_*` => `Region::new_*` | Maybe Waffle | -2/+3 | |
| 2023-05-29 | EarlyBinder::new -> EarlyBinder::bind | lcnr | -1/+1 | |
| 2023-05-28 | Make EarlyBinder's inner value private; and fix all of the resulting errors | Kyle Matsuda | -3/+1 | |
| 2023-05-28 | Replace EarlyBinder(x) with EarlyBinder::new(x) | Kyle Matsuda | -1/+1 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -2/+3 | |
| 2023-04-26 | Add new `ToPredicate` impls and `TraitRef` methods to remove some ↵ | Maybe Waffle | -3/+2 | |
| `ty::Binber::dummy` calls | ||||
| 2023-04-25 | Replace `tcx.mk_trait_ref` with `ty::TraitRef::new` | Maybe Waffle | -1/+1 | |
| 2023-03-30 | Update `ty::VariantDef` to use `IndexVec<FieldIdx, FieldDef>` | Scott McMurray | -2/+2 | |
| And while doing the updates for that, also uses `FieldIdx` in `ProjectionKind::Field` and `TypeckResults::field_indices`. There's more places that could use it (like `rustc_const_eval` and `LayoutS`), but I tried to keep this PR from exploding to *even more* places. Part 2/? of https://github.com/rust-lang/compiler-team/issues/606 | ||||
| 2023-03-22 | Do not feed param_env for RPITITs impl side | Santiago Pastorino | -1/+3 | |
| 2023-03-21 | Use local key in providers | Michael Goulet | -8/+6 | |
| 2023-03-20 | Walk un-shifted nested `impl Trait` in trait when setting up default trait ↵ | Michael Goulet | -16/+26 | |
| method assumptions | ||||
| 2023-03-16 | Don't install default opaque projection predicates in RPITIT associated ↵ | Michael Goulet | -7/+15 | |
| type's param-env | ||||
| 2023-03-16 | Install projection from RPITIT to default trait method opaque correctly | Michael Goulet | -3/+14 | |
| 2023-03-15 | ImplTraitPlaceholder -> is_impl_trait_in_trait | Santiago Pastorino | -1/+3 | |
| 2023-03-15 | Rename impl_trait_in_trait_parent to impl_trait_in_trait_parent_fn | Santiago Pastorino | -1/+1 | |
| 2023-03-14 | Encode opt_rpitit_info for associated types | Michael Goulet | -6/+3 | |
