Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | completion relevance consider if types can be unified | Josh Mcguigan | 2021-03-26 | 1 | -1/+1 |
| | |||||
* | Fix chalk_ir assertion | Florian Diebold | 2021-03-24 | 1 | -7/+26 |
| | | | | Fixes #8150. | ||||
* | Align Canonical more with Chalk's version | Florian Diebold | 2021-03-21 | 1 | -2/+10 |
| | | | | In particular, use chalk_ir::CanonicalVarKinds. | ||||
* | Use QuantifiedWhereClause in generic_predicates as well | Florian Diebold | 2021-03-21 | 1 | -2/+5 |
| | | | | | Still far too much binder skipping going on; I find it hard to imagine this is all correct, but the tests pass. | ||||
* | Introduce QuantifiedWhereClause and DynTy analogous to Chalk | Florian Diebold | 2021-03-21 | 1 | -16/+57 |
| | | | | | This introduces a bunch of new binders in lots of places, which we have to be careful about, but we had to add them at some point. | ||||
* | Ignore type bindings in generic_predicates_for_param | Florian Diebold | 2021-03-21 | 1 | -2/+11 |
| | | | | | | | | | | | | | This allows us to handle more cases without a query cycle, which includes certain cases that rustc accepted. That in turn means we avoid triggering salsa-rs/salsa#257 on valid code (it will still happen if the user writes an actual cycle). We actually accept more definitions than rustc now; that's because rustc only ignores bindings when looking up super traits, whereas we now also ignore them when looking for predicates to disambiguate associated type shorthand. We could introduce a separate query for super traits if necessary, but for now I think this should be fine. | ||||
* | Test for a Salsa bug | Florian Diebold | 2021-03-21 | 1 | -0/+4 |
| | |||||
* | Turn Obligation into something similar to chalk_ir::DomainGoal | Florian Diebold | 2021-03-20 | 1 | -2/+5 |
| | | | | This includes starting to make use of Chalk's `Cast` trait. | ||||
* | Remove WhereClause::Error | Florian Diebold | 2021-03-20 | 1 | -10/+1 |
| | | | | | Chalk doesn't have it, and judging from the removed code, it wasn't useful anyway. | ||||
* | Rename GenericPredicate -> WhereClause | Florian Diebold | 2021-03-20 | 1 | -19/+19 |
| | |||||
* | Replace Projection variant in GenericPredicate with AliasEq | Lukas Wirth | 2021-03-19 | 1 | -8/+41 |
| | |||||
* | Chalkify TraitRef | Florian Diebold | 2021-03-18 | 1 | -12/+27 |
| | |||||
* | Rename Substs -> Substitution | Florian Diebold | 2021-03-16 | 1 | -47/+47 |
| | |||||
* | Use SmallVec for Substs | Florian Diebold | 2021-03-15 | 1 | -7/+20 |
| | | | | | Doesn't help as much as I hoped, but it helps a bit and I also did some refactorings that were necessary anyway. | ||||
* | Don't use Substs for Ref/Raw/Array/Slice | Florian Diebold | 2021-03-14 | 1 | -49/+18 |
| | |||||
* | Make Ty wrap TyKind in an Arc | Florian Diebold | 2021-03-14 | 1 | -9/+17 |
| | | | | | | | | ... like it will be in Chalk. We still keep `interned_mut` and `into_inner` methods that will probably not exist with Chalk. This worsens performance slightly (5ginstr inference on RA), but doesn't include other simplifications we can do yet. | ||||
* | More renaming | Florian Diebold | 2021-03-14 | 1 | -4/+4 |
| | |||||
* | Use chalk_ir::FnSig | Florian Diebold | 2021-03-14 | 1 | -7/+6 |
| | |||||
* | Rename some fields to their Chalk names | Florian Diebold | 2021-03-14 | 1 | -9/+9 |
| | |||||
* | Use chalk_ir::OpaqueTyId | Florian Diebold | 2021-03-13 | 1 | -7/+9 |
| | |||||
* | Use chalk_ir::PlaceholderIndex | Florian Diebold | 2021-03-13 | 1 | -6/+25 |
| | |||||
* | Use chalk_ir::ClosureId | Florian Diebold | 2021-03-13 | 1 | -8/+6 |
| | |||||
* | Use chalk_ir::FnDefId | Florian Diebold | 2021-03-13 | 1 | -6/+18 |
| | |||||
* | Use chalk_ir::AssocTypeId | Florian Diebold | 2021-03-13 | 1 | -9/+19 |
| | |||||
* | Use chalk_ir::ForeignDefId | Florian Diebold | 2021-03-13 | 1 | -4/+16 |
| | |||||
* | Separate `Ty` and `TyKind` like in Chalk | Florian Diebold | 2021-03-13 | 1 | -121/+155 |
| | | | | | Currently `Ty` just wraps `TyKind`, but this allows us to change most places to already use `intern` / `interned`. | ||||
* | Use chalk_ir::AdtId | Lukas Wirth | 2021-03-04 | 1 | -8/+14 |
| | |||||
* | Use chalk_ir::Mutability | Lukas Wirth | 2021-03-01 | 1 | -6/+4 |
| | |||||
* | Introduce Ty::Alias | Lukas Wirth | 2021-03-01 | 1 | -35/+41 |
| | |||||
* | Assert index relationship between type_variable_table and var_unification_table | Lukas Wirth | 2021-03-01 | 1 | -2/+2 |
| | |||||
* | Being Ty::InferenceVar closes to chalk equivalent | Lukas Wirth | 2021-03-01 | 1 | -12/+5 |
| | |||||
* | Lift FnPointer into a struct | Lukas Wirth | 2021-02-28 | 1 | -32/+48 |
| | |||||
* | Remove Substs from Ty::ForeignType | Lukas Wirth | 2021-02-28 | 1 | -4/+1 |
| | |||||
* | Turn Ty::Tuple variant into a tuple-variant | Lukas Wirth | 2021-02-28 | 1 | -9/+7 |
| | |||||
* | Fix code_model::Type::walk not walking all types | Lukas Wirth | 2021-02-28 | 1 | -6/+4 |
| | |||||
* | Inline TypeCtor into Ty | Lukas Wirth | 2021-02-28 | 1 | -277/+215 |
| | |||||
* | Use chalk_ir::Scalar directly | Lukas Wirth | 2021-02-28 | 1 | -16/+8 |
| | |||||
* | Introduce TypeCtor::Scalar | Lukas Wirth | 2021-02-28 | 1 | -29/+22 |
| | |||||
* | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 1 | -0/+10 |
| | |||||
* | Classify function calls as functions when shadowed by types | Lukas Wirth | 2021-01-28 | 1 | -5/+14 |
| | |||||
* | Make `ModuleId`'s `krate` field private | Jonas Schievink | 2021-01-22 | 1 | -6/+8 |
| | |||||
* | Don't emit arg count diagnostics for method calls with unknown receiver | Florian Diebold | 2021-01-01 | 1 | -0/+4 |
| | | | | Fixes #7098. | ||||
* | Add Lifetimes to the HIR | Lukas Wirth | 2020-12-11 | 1 | -2/+8 |
| | |||||
* | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 1 | -2/+1 |
| | | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. | ||||
* | Update chalk to 0.27 and adapt to chalk changes. | Charles Lew | 2020-09-15 | 1 | -0/+11 |
| | |||||
* | Fix type walking about type of async block | oxalica | 2020-09-11 | 1 | -14/+9 |
| | |||||
* | Implement async blocks | oxalica | 2020-09-10 | 1 | -2/+37 |
| | |||||
* | Rename ra_hir_ty -> hir_ty | Aleksey Kladov | 2020-08-13 | 1 | -0/+1078 |