aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/generics.rs
Commit message (Collapse)AuthorAgeFilesLines
* internal: more natural order of sources for TypeParamAleksey Kladov2021-06-141-5/+5
| | | | | We usually use first (left) variant of `Either` for "usual" case, and use right for odd things. For example, pat source is Pat | SelfParam.
* clippy::redudant_borrowMaan20032021-06-131-2/+2
|
* internal: intern `TypeBound`sJonas Schievink2021-05-241-5/+15
| | | | | Doesn't save much memory (~2 mb), but interning things is generally a good pattern to follow
* Intern `GenericParams`Jonas Schievink2021-04-051-18/+19
| | | | | Also share the same instance between `ItemTree` and `generic_params` query.
* Add `GenericParams::shrink_to_fit`Jonas Schievink2021-04-051-0/+9
| | | | Reduces memory usage by over 10 MB
* Intern more `TypeRef`s in genericsJonas Schievink2021-04-051-7/+9
| | | | Saves ~3 MB
* Make `ItemTreeId` its own typeJonas Schievink2021-03-181-7/+7
|
* Change `ChildBySource` to allow reusing `DynMap`Jonas Schievink2021-03-091-3/+1
|
* Remove map module from la-arena public APIAramis Razzaghipour2021-01-151-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 arenaAleksey Kladov2021-01-141-1/+1
|
* Add ConstParams to the HIRLukas Wirth2021-01-011-5/+39
|
* Higher-ranked trait bounds for where clausesLukas Wirth2020-12-171-6/+31
|
* Merge #6896bors[bot]2020-12-161-5/+4
|\ | | | | | | | | | | | | | | | | | | | | | | 6896: Node-ify lifetimes r=jonas-schievink a=Veykril Let's see if this passes the tests 🤞 Depends on https://github.com/rust-analyzer/ungrammar/pull/15 Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Lukas Wirth <[email protected]>
| * Node-ify lifetimesLukas Wirth2020-12-161-5/+4
| |
* | Change HasChildSource::ChildId assoc item to generic paramLukas Wirth2020-12-151-12/+26
|/
* Add LifetimeParam resolving to SemanticsLukas Wirth2020-12-141-21/+28
|
* Add Lifetimes to the HIRLukas Wirth2020-12-111-21/+48
|
* Rename ra_hir_def -> hir_defAleksey Kladov2020-08-131-0/+339