Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove ids module | Aleksey Kladov | 2019-11-24 | 1 | -9/+9 |
| | |||||
* | Move lang_items to hir_def | Aleksey Kladov | 2019-11-23 | 1 | -2/+3 |
| | |||||
* | Remove old hir::generics module | Aleksey Kladov | 2019-11-21 | 1 | -7/+6 |
| | |||||
* | Upgrade Chalk again | Florian Diebold | 2019-11-16 | 1 | -16/+16 |
| | |||||
* | Use Chalk's dyn/impl trait support | Florian Diebold | 2019-11-16 | 1 | -2/+9 |
| | |||||
* | Upgrade Chalk | Florian Diebold | 2019-11-16 | 1 | -107/+179 |
| | | | | | Associated type values (in impls) are now a separate entity in Chalk, so we have to intern separate IDs for them. | ||||
* | Remove old impls infrastructure | Aleksey Kladov | 2019-11-15 | 1 | -3/+3 |
| | |||||
* | Move body queries to hir_def | Aleksey Kladov | 2019-11-14 | 1 | -2/+2 |
| | |||||
* | Minor cleanup | Aleksey Kladov | 2019-11-12 | 1 | -1/+1 |
| | |||||
* | Don't reexport generics from HIR | Aleksey Kladov | 2019-11-11 | 1 | -2/+2 |
| | |||||
* | Move Namespace enum closer to usage | Aleksey Kladov | 2019-11-04 | 1 | -2/+5 |
| | |||||
* | push name down to hir_expand | Aleksey Kladov | 2019-10-30 | 1 | -1/+2 |
| | |||||
* | remove forward pointer for name | Aleksey Kladov | 2019-10-30 | 1 | -1/+2 |
| | |||||
* | Move ids to hir_def crate | Aleksey Kladov | 2019-10-30 | 1 | -29/+5 |
| | |||||
* | introduce ra_hir_def | Aleksey Kladov | 2019-10-30 | 1 | -2/+2 |
| | |||||
* | Upgrade Chalk, make use of TypeName::Error variant | Florian Diebold | 2019-10-29 | 1 | -8/+7 |
| | |||||
* | Upgrade Chalk (without using its dyn/impl Trait support) | Florian Diebold | 2019-10-26 | 1 | -40/+70 |
| | |||||
* | `.collect()` directly into `Arc<[T]>` | Shotaro Yamada | 2019-10-14 | 1 | -2/+1 |
| | |||||
* | Chalk update to simplified IR | kjeremy | 2019-10-10 | 1 | -24/+34 |
| | |||||
* | Add SubstsBuilder | Florian Diebold | 2019-09-26 | 1 | -61/+19 |
| | | | | + further refactoring. | ||||
* | Fix retrieval of the Fn traits | Florian Diebold | 2019-09-25 | 1 | -3/+2 |
| | | | | | I used the wrong query, so it only used the lang items from the respective crate... | ||||
* | Implement the call argument checking order hack for closures | Florian Diebold | 2019-09-24 | 1 | -2/+2 |
| | |||||
* | Make closures impl closure traits | Florian Diebold | 2019-09-24 | 1 | -10/+122 |
| | |||||
* | Give closures types | Florian Diebold | 2019-09-24 | 1 | -0/+4 |
| | |||||
* | Upgrade Chalk again | Florian Diebold | 2019-09-24 | 1 | -3/+6 |
| | |||||
* | Upgrade Chalk | Florian Diebold | 2019-09-23 | 1 | -4/+6 |
| | |||||
* | Handle projection types from Chalk | Florian Diebold | 2019-09-22 | 1 | -1/+5 |
| | |||||
* | Remove TraitItem and ImplItem in favor of AssocItem | Florian Diebold | 2019-09-17 | 1 | -3/+3 |
| | |||||
* | Upgrade Chalk | Florian Diebold | 2019-09-14 | 1 | -9/+0 |
| | | | | ... and remove Ty::UnselectedProjection. It'll be handled differently. | ||||
* | also make "unknown" case non-enumerable | Niko Matsakis | 2019-09-09 | 1 | -1/+1 |
| | |||||
* | make all traits non-enumerable | Niko Matsakis | 2019-09-09 | 1 | -9/+1 |
| | | | | | As discussed on Zulip, this actually matches the present behavior of rustc. | ||||
* | Fix Chalk environments | Florian Diebold | 2019-09-07 | 1 | -1/+2 |
| | | | | | The clauses need to be wrapped in `FromEnv` clauses for elaboration (i.e. things like inferring `T: Clone` from `T: Copy`) to work correctly. | ||||
* | Lower bounds on trait definition, and resolve assoc types from super traits | Florian Diebold | 2019-09-07 | 1 | -1/+1 |
| | |||||
* | Make type walking infrastructure a bit nicer | Florian Diebold | 2019-09-03 | 1 | -0/+1 |
| | | | | | If/when we switch to using Chalk's Ty, we'll need to replace this by its `Fold` trait, but I didn't want to import the whole thing just yet. | ||||
* | Add support for associated type bindings (`where Trait<Type = X>`) | Florian Diebold | 2019-09-03 | 1 | -0/+7 |
| | |||||
* | Add `impl Trait` and `dyn Trait` types | Florian Diebold | 2019-08-22 | 1 | -1/+3 |
| | | | | | | | - refactor bounds handling in the AST a bit - add HIR for bounds - add `Ty::Dyn` and `Ty::Opaque` variants and lower `dyn Trait` / `impl Trait` syntax to them | ||||
* | Handle placeholder assoc types when Chalk produces them | Florian Diebold | 2019-08-12 | 1 | -3/+18 |
| | |||||
* | Normalize associated types during inference | Florian Diebold | 2019-08-12 | 1 | -3/+4 |
| | |||||
* | Add representations of associated types | Florian Diebold | 2019-08-12 | 1 | -0/+23 |
| | | | | | | | | | | | | This adds three different representations, copied from the Chalk model: - `Ty::Projection` is an associated type projection written somewhere in the code, like `<Foo as Trait>::Bar`. - `Ty::UnselectedProjection` is similar, but we don't know the trait yet (`Foo::Bar`). - The above representations are normalized to their actual types during type inference. When that isn't possible, for example for `T::Item` inside an `fn foo<T: Iterator>`, the type is normalized to an application type with `TypeCtor::AssociatedType`. | ||||
* | Remove blacklist, instead mark `Sized` as non-enumerable | Florian Diebold | 2019-07-15 | 1 | -17/+3 |
| | | | | | This seems to be enough to prevent hanging in rust-analyzer, Chalk and the rustc repo. | ||||
* | Cargo update, including updating Chalk | Florian Diebold | 2019-07-14 | 1 | -0/+2 |
| | |||||
* | Some renamings for clarity | Florian Diebold | 2019-07-14 | 1 | -2/+2 |
| | |||||
* | Unify `normalize` and `implements` to simplify code | Florian Diebold | 2019-07-08 | 1 | -1/+16 |
| | |||||
* | Use environment for associated type normalization as well | Florian Diebold | 2019-07-08 | 1 | -0/+15 |
| | |||||
* | Start handling environment in trait resolution | Florian Diebold | 2019-07-08 | 1 | -3/+16 |
| | | | | | I.e. if we are inside a function with some where clauses, we assume these where clauses hold. | ||||
* | Refactor a bit & introduce Environment struct | Florian Diebold | 2019-07-08 | 1 | -1/+55 |
| | |||||
* | Make EnumVariant a GenericDef and simplify some code | Florian Diebold | 2019-07-06 | 1 | -5/+1 |
| | |||||
* | allow rustfmt to reorder imports | Aleksey Kladov | 2019-07-04 | 1 | -7/+12 |
| | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway | ||||
* | cache chalk queries | Aleksey Kladov | 2019-06-26 | 1 | -193/+219 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives a significant speedup, because chalk will call these functions several times even withing a single revision. The only significant one here is `impl_data`, but I figured it might be good to cache others just for consistency. The results I get are: Before: from scratch: 16.081457952s no change: 15.846493ms trivial change: 352.95592ms comment change: 361.998408ms const change: 457.629212ms After: from scratch: 14.910610278s no change: 14.934647ms trivial change: 85.633023ms comment change: 96.433023ms const change: 171.543296ms Seems like a nice win! | ||||
* | Some more cleanup | Florian Diebold | 2019-06-15 | 1 | -4/+4 |
| |