Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Decouple more | Aleksey Kladov | 2019-11-27 | 1 | -4/+3 |
| | |||||
* | Decouple | Aleksey Kladov | 2019-11-27 | 1 | -5/+5 |
| | |||||
* | Decouple | Aleksey Kladov | 2019-11-27 | 1 | -1/+1 |
| | |||||
* | Cleanup | Aleksey Kladov | 2019-11-26 | 1 | -62/+39 |
| | |||||
* | Decouple | Aleksey Kladov | 2019-11-26 | 1 | -23/+23 |
| | |||||
* | Use TraitId in TraitRef | Aleksey Kladov | 2019-11-26 | 1 | -10/+8 |
| | |||||
* | Store names in TraitData | Aleksey Kladov | 2019-11-26 | 1 | -3/+3 |
| | |||||
* | Detangle ty from traits a bit | Aleksey Kladov | 2019-11-26 | 1 | -2/+3 |
| | |||||
* | id-ify impls_in_crate_query | Aleksey Kladov | 2019-11-26 | 1 | -46/+55 |
| | |||||
* | Id-ify Ty::Adt | Aleksey Kladov | 2019-11-26 | 1 | -2/+4 |
| | |||||
* | Use GenericDefIdMore | Aleksey Kladov | 2019-11-25 | 1 | -1/+1 |
| | |||||
* | Remove Resolver from autoderef | Aleksey Kladov | 2019-11-25 | 1 | -5/+6 |
| | | | | | Resolver holds onto too much context, including local scopes. Let's try to pass in only what is necessary -- the trait environment. | ||||
* | Move lang_items to hir_def | Aleksey Kladov | 2019-11-23 | 1 | -19/+28 |
| | |||||
* | Remove TraitData from API | Aleksey Kladov | 2019-11-22 | 1 | -1/+1 |
| | |||||
* | Move FunctionData to hir_def | Aleksey Kladov | 2019-11-22 | 1 | -3/+3 |
| | |||||
* | Move resolver to hir_def | Aleksey Kladov | 2019-11-21 | 1 | -1/+1 |
| | |||||
* | Decouple | Aleksey Kladov | 2019-11-21 | 1 | -5/+10 |
| | |||||
* | Decouple Resolver | Aleksey Kladov | 2019-11-21 | 1 | -1/+3 |
| | |||||
* | Move traits to hir_def | Aleksey Kladov | 2019-11-20 | 1 | -3/+3 |
| | |||||
* | Use Chalk's dyn/impl trait support | Florian Diebold | 2019-11-16 | 1 | -5/+1 |
| | |||||
* | Remove old impls infrastructure | Aleksey Kladov | 2019-11-15 | 1 | -58/+22 |
| | |||||
* | Reduce duplication between uncertain floats & ints | Aleksey Kladov | 2019-11-13 | 1 | -6/+5 |
| | |||||
* | Various review fixes | Florian Diebold | 2019-11-01 | 1 | -6/+5 |
| | |||||
* | Add some doc comments | Florian Diebold | 2019-11-01 | 1 | -0/+6 |
| | |||||
* | Complete trait assoc items | Florian Diebold | 2019-11-01 | 1 | -1/+1 |
| | |||||
* | Refactor a bit | Florian Diebold | 2019-11-01 | 1 | -36/+25 |
| | |||||
* | Don't do autoderef for path resolution | Florian Diebold | 2019-11-01 | 1 | -18/+39 |
| | |||||
* | Refactor to unify with method resolution | Florian Diebold | 2019-11-01 | 1 | -23/+67 |
| | |||||
* | remove forward pointer for type_ref | Aleksey Kladov | 2019-10-30 | 1 | -2/+1 |
| | |||||
* | introduce ra_hir_def | Aleksey Kladov | 2019-10-30 | 1 | -6/+6 |
| | |||||
* | Add SubstsBuilder | Florian Diebold | 2019-09-26 | 1 | -13/+5 |
| | | | | + further refactoring. | ||||
* | Merge #1906 | bors[bot] | 2019-09-25 | 1 | -2/+5 |
|\ | | | | | | | | | | | | | | | 1906: Add missing lang-items to `def_crates` r=matklad a=sinkuu Co-authored-by: Shotaro Yamada <[email protected]> | ||||
| * | Add missing lang-items to `def_crates` | Shotaro Yamada | 2019-09-25 | 1 | -2/+5 |
| | | |||||
* | | Remove redundant clone() | Shotaro Yamada | 2019-09-25 | 1 | -1/+1 |
|/ | |||||
* | Remove TraitItem and ImplItem in favor of AssocItem | Florian Diebold | 2019-09-17 | 1 | -6/+5 |
| | |||||
* | cleanup hir db imports | Aleksey Kladov | 2019-09-08 | 1 | -1/+2 |
| | |||||
* | Use traits from where clauses for method resolution | Florian Diebold | 2019-09-07 | 1 | -1/+7 |
| | | | | | E.g. if we have `T: some::Trait`, we can call methods from that trait without it needing to be in scope. | ||||
* | Handle impl/dyn Trait in method resolution | Florian Diebold | 2019-08-22 | 1 | -2/+14 |
| | | | | | | | | | | | | | When we have one of these, the `Trait` doesn't need to be in scope to call its methods. So we need to consider this when looking for method candidates. (Actually I think the same is true when we have a bound `T: some::Trait`, but we don't handle that yet). At the same time, since Chalk doesn't handle these types yet, add a small hack to skip Chalk in method resolution and just consider `impl Trait: Trait` always true. This is enough to e.g. get completions for `impl Trait`, but since we don't do any unification we won't infer the return type of e.g. `impl Into<i64>::into()`. | ||||
* | show inherent and trait impls of structs and enums | Ekaterina Babshukova | 2019-08-16 | 1 | -0/+9 |
| | |||||
* | do fixup: remove unused import | Evgenii P | 2019-08-02 | 1 | -1/+1 |
| | |||||
* | Relax trait solving more for completion | Evgenii P | 2019-08-02 | 1 | -7/+1 |
| | |||||
* | rustfmt | Evgenii P | 2019-08-02 | 1 | -3/+9 |
| | |||||
* | Implement completion for the .await syntax | Evgenii P | 2019-08-02 | 1 | -1/+15 |
| | |||||
* | Some renamings for clarity | Florian Diebold | 2019-07-14 | 1 | -3/+3 |
| | |||||
* | Merge #1515 | bors[bot] | 2019-07-09 | 1 | -9/+12 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 1515: Trait environment r=matklad a=flodiebold This adds the environment, i.e. the set of `where` clauses in scope, when solving trait goals. That means that e.g. in ```rust fn foo<T: SomeTrait>(t: T) {} ``` , we are able to complete methods of `SomeTrait` on the `t`. This affects the trait APIs quite a bit (since every method that needs to be able to solve for some trait needs to get this environment somehow), so I thought I'd do it rather sooner than later ;) Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Unify `normalize` and `implements` to simplify code | Florian Diebold | 2019-07-08 | 1 | -8/+8 |
| | | |||||
| * | Start handling environment in trait resolution | Florian Diebold | 2019-07-08 | 1 | -3/+4 |
| | | | | | | | | | | 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 | -4/+6 |
| | | |||||
* | | Look for the fXX_runtime lang items during method resolution. | Marco Groppo | 2019-07-08 | 1 | -4/+6 |
|/ | |||||
* | Moved module resolution test in mods.rs | Alexander Andreev | 2019-07-07 | 1 | -1/+1 |
| |