| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-19 | Transform async ResumeTy in generator transform | Arpad Borsos | -0/+9 | |
| - Eliminates all the `get_context` calls that async lowering created. - Replace all `Local` `ResumeTy` types with `&mut Context<'_>`. The `Local`s that have their types replaced are: - The `resume` argument itself. - The argument to `get_context`. - The yielded value of a `yield`. The `ResumeTy` hides a `&mut Context<'_>` behind an unsafe raw pointer, and the `get_context` function is being used to convert that back to a `&mut Context<'_>`. Ideally the async lowering would not use the `ResumeTy`/`get_context` indirection, but rather directly use `&mut Context<'_>`, however that would currently lead to higher-kinded lifetime errors. See <https://github.com/rust-lang/rust/issues/105501>. The async lowering step and the type / lifetime inference / checking are still using the `ResumeTy` indirection for the time being, and that indirection is removed here. After this transform, the generator body only knows about `&mut Context<'_>`. | ||||
| 2023-01-17 | Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726 | Matthias Krüger | -2/+2 | |
| 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 | -2/+2 | |
| 2023-01-12 | Feed the `features_query` instead of grabbing it from the session lazily | Oli Scherer | -1/+0 | |
| 2023-01-12 | Remove `output_filenames` field from TyCtxt and feed the query instead | Oli Scherer | -7/+1 | |
| 2023-01-12 | Remove `untracked_crate` field and instead pass it along with the resolver. | Oli Scherer | -6/+0 | |
| 2023-01-12 | Feed `crate_name` query | Oli Scherer | -11/+4 | |
| 2023-01-12 | Feed `resolutions` query instead of it being a thin wrapper around an ↵ | Oli Scherer | -5/+1 | |
| untracked field | ||||
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -2/+2 | |
| 2022-12-16 | Rename ConstS to ConstData | Oli Scherer | -5/+5 | |
| 2022-12-15 | Move `TypeckResults` to seperate module | Nilstrieb | -680/+11 | |
| 2022-12-14 | Debug assertions hate this trick | Oli Scherer | -3/+3 | |
| 2022-12-14 | Fix some comments and only get the generics in debug mode | Oli Scherer | -27/+23 | |
| 2022-12-14 | Remove TraitRef::new | Oli Scherer | -1/+1 | |
| 2022-12-14 | Ensure no one constructs `AliasTy`s themselves | Oli Scherer | -3/+3 | |
| 2022-12-14 | Remove many more cases of `mk_substs_trait` that can now use the iterator ↵ | Oli Scherer | -1/+5 | |
| scheme` | ||||
| 2022-12-14 | Let `mk_fn_def` take an iterator instead to simplify some call sites | Oli Scherer | -4/+12 | |
| 2022-12-14 | Guard `AliasTy` creation against passing the wrong number of substs | Oli Scherer | -7/+19 | |
| 2022-12-13 | Combine projection and opaque into alias | Michael Goulet | -7/+5 | |
| 2022-12-13 | squash OpaqueTy and ProjectionTy into AliasTy | Michael Goulet | -9/+8 | |
| 2022-12-13 | ProjectionTy.item_def_id -> ProjectionTy.def_id | Michael Goulet | -1/+1 | |
| 2022-12-13 | Use ty::OpaqueTy everywhere | Michael Goulet | -2/+3 | |
| 2022-12-09 | Fold `Definitions` into the untracked data | Oli Scherer | -31/+14 | |
| 2022-12-09 | Move the untracked cstore and source_span into a struct | Oli Scherer | -42/+27 | |
| 2022-12-08 | Rollup merge of #105423 - oli-obk:symbols, r=jackh726 | Matthias Krüger | -2/+2 | |
| Use `Symbol` for the crate name instead of `String`/`str` It always got converted to a symbol anyway | ||||
| 2022-12-07 | Use `Symbol` for the crate name instead of `String`/`str` | Oli Scherer | -2/+2 | |
| 2022-12-07 | Rollup merge of #105267 - compiler-errors:issue-104613, r=oli-obk | Matthias Krüger | -0/+8 | |
| Don't ICE in ExprUseVisitor on FRU for non-existent struct Fixes #104613 Fixes #105202 | ||||
| 2022-12-06 | Rollup merge of #104898 - oli-obk:group_all_the_things, r=wesleywiser | Matthias Krüger | -56/+27 | |
| Put all cached values into a central struct instead of just the stable hash cc `@nnethercote` this allows re-use of the type for Predicate without duplicating all the logic for the non-hash cached fields | ||||
| 2022-12-05 | feed resolver_for_lowering instead of storing it in a field | Oli Scherer | -10/+9 | |
| 2022-12-05 | Allow arbitrary keys in feeding API | Oli Scherer | -7/+14 | |
| 2022-12-04 | drive-by: move field_index to typeck results | Michael Goulet | -0/+8 | |
| 2022-12-01 | Fill in `def_span` when creating def ids. | Oli Scherer | -1/+7 | |
| This makes sure that ICEing because of def ids created outside of ast lowering will be able to produce a query backtrace and not cause a double panic because of trying to call the `def_span` query | ||||
| 2022-11-30 | Auto merge of #104940 - cjgillot:query-feed-simple, r=oli-obk | bors | -10/+44 | |
| Allow to feed a value in another query's cache Restricted version of https://github.com/rust-lang/rust/pull/96840 A query can create new definitions. If those definitions are created after HIR lowering, they do not appear in the initial HIR map, and information for them cannot be provided in the normal pull-based way. In order to make those definitions useful, we allow to feed values as query results for the newly created definition. The API is as follows: ```rust let feed = tcx.create_def(<parent def id>, <DefPathData>); // `feed` is a TyCtxtFeed<'tcx>. // Access the created definition. let def_id: LocalDefId = feed.def_id; // Assign `my_query(def_id) := my_value`. feed.my_query(my_value). ``` This PR keeps the consistency checks introduced by https://github.com/rust-lang/rust/pull/96840, even if they are not reachable. This allows to extend the behaviour later without forgetting them. cc `@oli-obk` `@spastorino` | ||||
| 2022-11-30 | Generalize some InternedInSet impls | Oli Scherer | -36/+6 | |
| 2022-11-30 | Remove PredicateS type | Oli Scherer | -20/+21 | |
| 2022-11-30 | Remove TyS | Oli Scherer | -18/+17 | |
| 2022-11-30 | move WithCachedTypeInfo to rustc_type_ir | Oli Scherer | -1/+2 | |
| 2022-11-30 | s/WithStableHash/WithCachedTypeInfo/ | Oli Scherer | -15/+15 | |
| 2022-11-29 | Auto merge of #94487 - oli-obk:stable_hash_ty, r=fee1-dead | bors | -23/+54 | |
| Also cache the stable hash of interned Predicates continuation of https://github.com/rust-lang/rust/pull/94299 This is a small perf improvement and shares more code between `Ty` and `Predicate` | ||||
| 2022-11-29 | Make TyCtxtFeed::def_id private. | Camille GILLOT | -4/+11 | |
| 2022-11-29 | Only allow feeding a value to newly created definitions. | Camille GILLOT | -10/+37 | |
| 2022-11-29 | Auto merge of #105012 - WaffleLapkin:into, r=oli-obk | bors | -22/+10 | |
| Make `tcx.mk_const` more permissive wrt `kind` argument (`impl Into`) r? `@oli-obk` you've asked for this >:) | ||||
| 2022-11-29 | Rollup merge of #104951 - Swatinem:async-kind, r=compiler-errors | Matthias Krüger | -0/+5 | |
| Simplify checking for `GeneratorKind::Async` Adds a helper method around `generator_kind` that makes matching async constructs simpler. | ||||
| 2022-11-28 | Simplify checking for `GeneratorKind::Async` | Arpad Borsos | -0/+5 | |
| Adds a helper method around `generator_kind` that makes matching async constructs simpler. | ||||
| 2022-11-28 | Remove `tcx.mk_const_var` | Maybe Waffle | -20/+8 | |
| ... `tcx.mk_const` can now be used instead | ||||
| 2022-11-28 | Make `tcx.mk_const` more permissive wrt `kind` argument | Maybe Waffle | -2/+2 | |
| - Accept `impl Into` - Implement `From<>` for `ConstKind` Note: this adds a dependency on `derive_more` (MIT license). It allows to derive a lot of traits (like `From` here) that would be otherwise tedious to implement. | ||||
| 2022-11-28 | Rename `NestedMetaItem::[Ll]iteral` as `NestedMetaItem::[Ll]it`. | Nicholas Nethercote | -1/+1 | |
| We already use a mix of `Literal` and `Lit`. The latter is better because it is shorter without causing any ambiguity. | ||||
| 2022-11-28 | Rename `ast::Lit` as `ast::MetaItemLit`. | Nicholas Nethercote | -2/+3 | |
| 2022-11-27 | Prefer doc comments over `//`-comments in compiler | Maybe Waffle | -18/+20 | |
| 2022-11-25 | Auto merge of #99798 - JulianKnodt:ac1, r=BoxyUwU | bors | -0/+14 | |
| Add `ConstKind::Expr` Starting to implement `ty::ConstKind::Abstract`, most of the match cases are stubbed out, some I was unsure what to add, others I didn't want to add until a more complete implementation was ready. r? `@lcnr` | ||||
