| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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` | ||||
| 2022-11-25 | Cache Predicates' hash within themselves | Oli Scherer | -23/+54 | |
| 2022-11-25 | Fix mk_const_list | kadmin | -1/+1 | |
| 2022-11-25 | correctly intern `List<Const<'tcx>>` | Boxy | -1/+4 | |
| 2022-11-25 | Add empty ConstKind::Abstract | kadmin | -0/+11 | |
| Initial pass at expr/abstract const/s Address comments Switch to using a list instead of &[ty::Const], rm `AbstractConst` Remove try_unify_abstract_consts Update comments Add edits Recurse more More edits Prevent equating associated consts Move failing test to ui Changes this test from incremental to ui, and mark it as failing and a known bug. Does not cause the compiler to ICE, so should be ok. | ||||
| 2022-11-25 | Introduce PredicateKind::Clause | Santiago Pastorino | -2/+4 | |
| 2022-11-24 | move things from rustc_target::abi to rustc_abi | hkalbasi | -1/+1 | |
| 2022-11-24 | make rustc_target usable outside of rustc | hkalbasi | -2/+2 | |
| 2022-11-22 | Use `tcx.require_lang_item` instead of unwrapping | Maybe Waffle | -1/+1 | |
| 2022-11-21 | Stop passing the self-type as a separate argument. | Oli Scherer | -11/+10 | |
| 2022-11-21 | Remove some unnecessary slicing | Oli Scherer | -7/+7 | |
| 2022-11-21 | Add helper to create the trait ref for a lang item | Oli Scherer | -0/+10 | |
| 2022-11-21 | Allow iterators instead of requiring slices that will get turned into iterators | Oli Scherer | -4/+10 | |
| 2022-11-21 | Assert that various types have the right amount of generic args and fix the ↵ | Oli Scherer | -0/+25 | |
| sites that used the wrong amount | ||||
| 2022-11-19 | drive-by: PolyExistentialPredicate | Michael Goulet | -17/+13 | |
| 2022-11-13 | Make user_provided_sigs a LocalDefIdMap. | Camille GILLOT | -2/+2 | |
| 2022-11-11 | Skip stable hashing without incremental. | Camille GILLOT | -1/+3 | |
| 2022-11-11 | Use the interned stable hash as plain hash. | Camille GILLOT | -3/+1 | |
| 2022-11-11 | Hash spans when interning. | Camille GILLOT | -6/+2 | |
| 2022-11-08 | Rollup merge of #104132 - Rejyr:rustc_lint-function-lints, r=davidtwco | Guillaume Gomez | -0/+1 | |
| fix: lint against lint functions Add `#[rustc_lint_diagnostics]` to lint functions missing them. From [this discussion](https://github.com/rust-lang/rust/pull/101138#issuecomment-1306379999). r? ```@davidtwco``` | ||||
| 2022-11-08 | code cleanup with err.emit_unless | yukang | -1/+1 | |
| 2022-11-08 | add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed' | yukang | -0/+16 | |
| 2022-11-07 | fix: lint against lint functions | Rejyr | -0/+1 | |
| fix: lint against the functions `LintContext::{lookup_with_diagnostics,lookup,struct_span_lint,lint}`, `TyCtxt::struct_lint_node`, `LintLevelsBuilder::struct_lint`. | ||||
| 2022-11-06 | Auto merge of #103720 - crlf0710:most_translation_attr, r=compiler-errors | bors | -1/+4 | |
| Lint against usages of `struct_span_lint_hir`. r? `@compiler-errors` | ||||
| 2022-11-04 | Refactor tcx mk_const parameters. | Mateusz | -5/+10 | |
