Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Split `infer` query into two for better profiling | Michal Terepeta | 2020-01-03 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the same change as we did with `crate_def_map` and it does seem that we mostly spend time in salsa, without recomputing much on rust-analyzer side. Example output: ``` 233ms - handle_inlay_hints 163ms - get_inlay_hints 163ms - SourceAnalyzer::new 67ms - def_with_body_from_child_node 67ms - analyze_container 67ms - analyze_container 67ms - Module::from_definition 67ms - Module::from_file 67ms - crate_def_map 0ms - parse_macro_query (6 calls) 0ms - raw_items_query (1 calls) 66ms - ??? 0ms - crate_def_map (1 calls) 0ms - crate_def_map (1 calls) 96ms - infer 2ms - trait_solve_query (2 calls) 94ms - ??? 0ms - body_with_source_map_query (1 calls) 0ms - crate_def_map (1 calls) [...] ``` Signed-off-by: Michal Terepeta <[email protected]> | ||||
* | Resolve traits in infer using lang item infrastructure | Emil Lauridsen | 2019-12-29 | 1 | -10/+13 |
| | |||||
* | Check if parameters is empty | Edwin Cheng | 2019-12-24 | 1 | -4/+6 |
| | |||||
* | Add FIXME | Edwin Cheng | 2019-12-24 | 1 | -1/+5 |
| | |||||
* | Implement infer await from async func | Edwin Cheng | 2019-12-24 | 1 | -2/+15 |
| | |||||
* | Fix coercion of last expression in function body | Florian Diebold | 2019-12-20 | 1 | -1/+1 |
| | |||||
* | Handle closure return types | Florian Diebold | 2019-12-20 | 1 | -1/+6 |
| | | | | Fixes #2547. | ||||
* | Use fill instread of for loop | Edwin Cheng | 2019-12-19 | 1 | -5/+3 |
| | |||||
* | Use build_for_def | Edwin Cheng | 2019-12-19 | 1 | -1/+1 |
| | |||||
* | Add std::ops::Index support for infering | Edwin Cheng | 2019-12-19 | 1 | -1/+21 |
| | |||||
* | Add test mark | Florian Diebold | 2019-12-15 | 1 | -0/+2 |
| | |||||
* | Handle impl Trait more correctly | Florian Diebold | 2019-12-15 | 1 | -1/+24 |
| | | | | | | | When calling a function, argument-position impl Trait is transparent; same for return-position impl Trait when inside the function. So in these cases, we need to represent that type not by `Ty::Opaque`, but by a type variable that can be unified with whatever flows into there. | ||||
* | Use different types for path with and without generics | Aleksey Kladov | 2019-12-14 | 1 | -1/+1 |
| | |||||
* | Use path macro | Florian Diebold | 2019-12-13 | 1 | -13/+13 |
| | |||||
* | Rename N! to name! | Florian Diebold | 2019-12-13 | 1 | -6/+6 |
| | |||||
* | Add macros for known names and paths | Florian Diebold | 2019-12-13 | 1 | -6/+6 |
| | |||||
* | Correctly infer - and ! using std::ops::{Neg,Not} | Emil Lauridsen | 2019-12-13 | 1 | -2/+14 |
| | |||||
* | Add helper for resolving associated type of trait in infer | Emil Lauridsen | 2019-12-13 | 1 | -0/+18 |
| | |||||
* | Make unify pub(crate) | Florian Diebold | 2019-12-03 | 1 | -1/+1 |
| | |||||
* | Check receiver type properly | Florian Diebold | 2019-12-02 | 1 | -2/+4 |
| | |||||
* | Extract unification code to unify module | Florian Diebold | 2019-12-02 | 1 | -233/+22 |
| | |||||
* | Infer range types | oxalica | 2019-11-28 | 1 | -0/+36 |
| | |||||
* | Move source-related traits to a separate module | Aleksey Kladov | 2019-11-28 | 1 | -1/+1 |
| | |||||
* | Move Ty | Aleksey Kladov | 2019-11-27 | 1 | -0/+723 |