rust/crates/ra_hir_def/src
bors[bot] 1e0ba04033
Merge #3966 #3968
3966: Add support for bounds on associated types in trait definitions r=matklad a=flodiebold

E.g.
```rust
trait Trait {
    type Item: SomeOtherTrait;
}
```
Note that these don't simply desugar to where clauses; as I understand it, where clauses have to be proved by the *user* of the trait, but these bounds are proved by the *implementor*. (Also, where clauses on associated types are unstable.)

(Another one from my recursive solver branch...)

3968: Remove format from syntax_bridge hot path r=matklad a=edwin0cheng

Although only around 1% speed up by running:

```
Measure-Command {start-process .\target\release\rust-analyzer "analysis-stats -q ." -NoNewWindow -wait}
```

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-04-15 09:29:36 +00:00
..
body handle tuple patterns with ellipsis 2020-04-13 08:19:19 -07:00
nameres Make incremental nameres test harder 2020-04-11 17:54:46 +02:00
path Implement inline associated type bounds 2020-04-13 15:07:39 +02:00
adt.rs Avoid cyclic queries in name resolution when processing enums 2020-04-11 17:52:26 +02:00
attr.rs Remove code duplication 2020-04-11 17:18:42 +02:00
body.rs Remove dead code 2020-04-11 19:36:31 +02:00
builtin_type.rs
child_by_source.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
data.rs Merge #3966 #3968 2020-04-15 09:29:36 +00:00
db.rs Cleanup memory usage stats 2020-03-25 19:35:46 +01:00
diagnostics.rs Forward compat 2020-04-11 00:27:00 +02:00
docs.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
dyn_map.rs
expr.rs handle tuple patterns with ellipsis 2020-04-13 08:19:19 -07:00
find_path.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
generics.rs Be consistent about token accesors 2020-04-09 18:48:13 +02:00
item_scope.rs fix typo of visibility_of 2020-03-26 00:11:38 +08:00
keys.rs Rename ast::ImplBlock -> ast::ImplDef 2020-02-29 21:33:15 +01:00
lang_item.rs profile queries 2020-04-10 20:26:47 +02:00
lib.rs Check for eprintln on CI 2020-04-06 17:00:18 +02:00
marks.rs
nameres.rs Nice string formatting 2020-03-28 12:27:54 +01:00
path.rs Implement inline associated type bounds 2020-04-13 15:07:39 +02:00
per_ns.rs
resolver.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
src.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
test_db.rs Use dyn Trait for working with databse 2020-03-16 17:42:30 +01:00
trace.rs Simplify Arena to use a generic index 2020-03-19 18:46:30 +01:00
type_ref.rs Implement inline associated type bounds 2020-04-13 15:07:39 +02:00
visibility.rs Provide more complete AST accessors to support usage in rustc 2020-04-09 11:50:37 +02:00