Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge #8284 | bors[bot] | 2021-04-02 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | 8284: Reduce memory usage by using global `Arc`-based interning r=jonas-schievink a=jonas-schievink This saves around 50 mb when running `analysis-stats` on r-a itself. Not a lot, but this infra can be easily reused to intern more stuff. Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Global TypeRef/TraitRef interning | Jonas Schievink | 2021-04-01 | 1 | -1/+1 | |
| | | ||||||
* | | Don't allocate in `associated_type_shorthand_candidates` | Lukas Wirth | 2021-04-02 | 1 | -36/+33 | |
| | | ||||||
* | | Resolve associated types with type anchors | Lukas Wirth | 2021-04-01 | 1 | -1/+1 | |
|/ | ||||||
* | Remove TraitRef::Error | Lukas Wirth | 2021-03-29 | 1 | -4/+1 | |
| | ||||||
* | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 1 | -1/+1 | |
| | ||||||
* | Lower traits to TraitRef instead of TypeRef | Lukas Wirth | 2021-03-29 | 1 | -7/+6 | |
| | ||||||
* | Fix chalk_ir assertion | Florian Diebold | 2021-03-24 | 1 | -4/+7 | |
| | | | | Fixes #8150. | |||||
* | Correctly lower TraitRefs with default params | Lukas Wirth | 2021-03-22 | 1 | -8/+17 | |
| | ||||||
* | Use QuantifiedWhereClause in generic_predicates as well | Florian Diebold | 2021-03-21 | 1 | -12/+6 | |
| | | | | | 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 | -19/+36 | |
| | | | | | 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. | |||||
* | Merge #8133 | bors[bot] | 2021-03-21 | 1 | -6/+19 | |
|\ | | | | | | | | | | | | | | | | | | | 8133: Ignore type bindings in generic_predicates_for_param (fix panic on ena and crates depending on it) r=flodiebold a=flodiebold 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. Co-authored-by: Florian Diebold <[email protected]> | |||||
| * | Ignore type bindings in generic_predicates_for_param | Florian Diebold | 2021-03-21 | 1 | -6/+19 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | remove more redundant clones (clippy::redundant_clone()) | Matthias Krüger | 2021-03-21 | 1 | -2/+1 | |
|/ | ||||||
* | Remove WhereClause::Error | Florian Diebold | 2021-03-20 | 1 | -5/+2 | |
| | | | | | 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 | -20/+17 | |
| | ||||||
* | Replace Projection variant in GenericPredicate with AliasEq | Lukas Wirth | 2021-03-19 | 1 | -5/+5 | |
| | ||||||
* | Chalkify TraitRef | Florian Diebold | 2021-03-18 | 1 | -11/+11 | |
| | ||||||
* | Rename Substs -> Substitution | Florian Diebold | 2021-03-16 | 1 | -21/+25 | |
| | ||||||
* | Use SmallVec for Substs | Florian Diebold | 2021-03-15 | 1 | -4/+5 | |
| | | | | | 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 | -6/+4 | |
| | ||||||
* | Make Ty wrap TyKind in an Arc | Florian Diebold | 2021-03-14 | 1 | -1/+1 | |
| | | | | | | | | ... 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 | -2/+5 | |
| | ||||||
* | Use chalk_ir::FnSig | Florian Diebold | 2021-03-14 | 1 | -2/+2 | |
| | ||||||
* | Rename some fields to their Chalk names | Florian Diebold | 2021-03-14 | 1 | -6/+6 | |
| | ||||||
* | Move type lowering methods to TyLoweringContext | Florian Diebold | 2021-03-13 | 1 | -275/+235 | |
| | ||||||
* | Create TraitEnvironment through a query | Florian Diebold | 2021-03-13 | 1 | -44/+44 | |
| | ||||||
* | Use chalk_ir::OpaqueTyId | Florian Diebold | 2021-03-13 | 1 | -7/+5 | |
| | ||||||
* | Use chalk_ir::PlaceholderIndex | Florian Diebold | 2021-03-13 | 1 | -6/+11 | |
| | ||||||
* | Use chalk_ir::FnDefId | Florian Diebold | 2021-03-13 | 1 | -3/+12 | |
| | ||||||
* | Use chalk_ir::AssocTypeId | Florian Diebold | 2021-03-13 | 1 | -3/+7 | |
| | ||||||
* | Use chalk_ir::ForeignDefId | Florian Diebold | 2021-03-13 | 1 | -1/+1 | |
| | ||||||
* | Separate `Ty` and `TyKind` like in Chalk | Florian Diebold | 2021-03-13 | 1 | -51/+71 | |
| | | | | | Currently `Ty` just wraps `TyKind`, but this allows us to change most places to already use `intern` / `interned`. | |||||
* | Use Chalk Environment more directly | Florian Diebold | 2021-03-12 | 1 | -8/+23 | |
| | ||||||
* | Delete `ContainerId` | Jonas Schievink | 2021-03-09 | 1 | -2/+2 | |
| | ||||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 1 | -3/+2 | |
| | ||||||
* | Use chalk_ir::AdtId | Lukas Wirth | 2021-03-04 | 1 | -1/+1 | |
| | ||||||
* | Use chalk_ir::Mutability | Lukas Wirth | 2021-03-01 | 1 | -2/+10 | |
| | ||||||
* | Introduce Ty::Alias | Lukas Wirth | 2021-03-01 | 1 | -16/+19 | |
| | ||||||
* | Lift FnPointer into a struct | Lukas Wirth | 2021-02-28 | 1 | -8/+12 | |
| | ||||||
* | Remove Substs from Ty::ForeignType | Lukas Wirth | 2021-02-28 | 1 | -2/+2 | |
| | ||||||
* | Turn Ty::Tuple variant into a tuple-variant | Lukas Wirth | 2021-02-28 | 1 | -1/+1 | |
| | ||||||
* | Inline TypeCtor into Ty | Lukas Wirth | 2021-02-28 | 1 | -20/+13 | |
| | ||||||
* | Don't lower TypeBound::Lifetime as GenericPredicate::Error | Lukas Wirth | 2021-02-20 | 1 | -18/+16 | |
| | ||||||
* | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 1 | -13/+1 | |
| | ||||||
* | Make `ModuleId`'s `krate` field private | Jonas Schievink | 2021-01-22 | 1 | -1/+1 | |
| | ||||||
* | Remove map module from la-arena public API | Aramis Razzaghipour | 2021-01-15 | 1 | -1/+1 | |
| | | | | | | It’s unlikely that more items will be added to the module, so it’s simpler for users if `ArenaMap` is re-exported and the module made private. | |||||
* | prepare to publish el libro de arena | Aleksey Kladov | 2021-01-14 | 1 | -1/+1 | |
| | ||||||
* | Fixed typos in local bindings | Vincent Esche | 2021-01-09 | 1 | -3/+3 | |
| | ||||||
* | Add ConstParams to the HIR | Lukas Wirth | 2021-01-01 | 1 | -3/+12 | |
| |