Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add TyBuilder::adt | Florian Diebold | 2021-04-04 | 1 | -5/+82 | |
| | ||||||
* | Move Ty::fn_ptr to TyBuilder | Florian Diebold | 2021-04-04 | 1 | -7/+7 | |
| | ||||||
* | Add TyBuilder::unit() and TyExt::is_unit() | Florian Diebold | 2021-04-04 | 1 | -5/+5 | |
| | ||||||
* | Add TyBuilder | Florian Diebold | 2021-04-04 | 1 | -0/+6 | |
| | ||||||
* | Rename Ty::interned to Ty::kind | Florian Diebold | 2021-04-03 | 1 | -20/+20 | |
| | | | | ... since that's the actual method on Chalk side that matches the signature. | |||||
* | Introduce `GenericArg` like in Chalk | Florian Diebold | 2021-04-03 | 1 | -48/+125 | |
| | | | | | | | Plus some more adaptations to Substitution. Lots of `assert_ty_ref` that we should revisit when introducing lifetime/const parameters. | |||||
* | 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. |