rust-analyzer/crates/ra_hir/src
bors[bot] f59cd1a4a0 Merge #1515
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 <flodiebold@gmail.com>
2019-07-09 07:50:18 +00:00
..
code_model Some clippy fixes for 1.36 2019-07-04 17:43:00 -04:00
expr Clippy trivially_copy_pass_by_ref 2019-07-05 12:02:32 -04:00
nameres cargo format 2019-07-08 04:09:35 +06:00
ty Merge #1515 2019-07-09 07:50:18 +00:00
adt.rs Clippy trivially_copy_pass_by_ref 2019-07-05 12:02:32 -04:00
code_model.rs cargo format 2019-07-08 04:09:35 +06:00
db.rs Unify normalize and implements to simplify code 2019-07-08 21:47:37 +02:00
diagnostics.rs use correct file for diagnostics 2019-07-05 19:40:02 +03:00
either.rs use single version of either in hir 2019-06-11 01:26:20 +03:00
expr.rs Constify KnownName's 2019-07-08 03:29:38 +06:00
generics.rs cargo format 2019-07-08 04:09:35 +06:00
ids.rs Clippy trivially_copy_pass_by_ref 2019-07-05 12:02:32 -04:00
impl_block.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
lang_item.rs Some clippy fixes for 1.36 2019-07-04 17:43:00 -04:00
lib.rs Constify KnownName's 2019-07-08 03:29:38 +06:00
marks.rs Handle Chalk conversion for FnDef 2019-05-11 16:21:20 +02:00
mock.rs Some clippy fixes for 1.36 2019-07-04 17:43:00 -04:00
name.rs projection over std::ops::Try::Ok to infer try/? 2019-07-09 00:19:09 +09:00
nameres.rs cargo format 2019-07-08 04:09:35 +06:00
path.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
resolve.rs Constify KnownName's 2019-07-08 03:29:38 +06:00
source_binder.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
source_id.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
traits.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ty.rs Unify normalize and implements to simplify code 2019-07-08 21:47:37 +02:00
type_alias.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
type_ref.rs Remove TypeRef from item opts which implement TypeAscriptionOwner 2019-02-27 14:08:09 +02:00