rust/src/librustc_typeck
bors 1ca100d042 Auto merge of #38605 - estebank:fix-38371, r=nikomatsakis
Suggest solutions for `fn foo(&foo: Foo)`

For a given file:

```rust
struct Foo {}

fn foo(&foo: Foo) {}
```

suggest:

```
error[E0308]: mismatched types
 --> file.rs:3:8
  |
3 | fn foo(&foo: Foo) {}
  |        ^^^^ expected struct `Foo`, found reference
  |
  = note: expected type `Foo`
  = note:    found type `&_`
  = help: did you mean `foo: &Foo`?
```

Fix #38371.
2017-01-12 01:01:06 +00:00
..
check Auto merge of #38605 - estebank:fix-38371, r=nikomatsakis 2017-01-12 01:01:06 +00:00
coherence rustc: keep track of tables everywhere as if they were per-body. 2017-01-06 22:23:29 +02:00
variance rustc: separate TraitItem from their parent Item, just like ImplItem. 2016-12-28 11:21:45 +02:00
astconv.rs rustc: keep track of tables everywhere as if they were per-body. 2017-01-06 22:23:29 +02:00
Cargo.toml move the impl-params-constrained check out of collect 2016-11-16 13:57:46 -05:00
check_unused.rs rustc: separate TraitItem from their parent Item, just like ImplItem. 2016-12-28 11:21:45 +02:00
collect.rs rustc: keep track of tables everywhere as if they were per-body. 2017-01-06 22:23:29 +02:00
constrained_type_params.rs move the impl-params-constrained check out of collect 2016-11-16 13:57:46 -05:00
diagnostics.rs simplify Copy implementation error reporting 2017-01-04 00:03:34 +02:00
impl_wf_check.rs rustc: separate TraitItem from their parent Item, just like ImplItem. 2016-12-28 11:21:45 +02:00
lib.rs Auto merge of #38813 - eddyb:lazy-11, r=nikomatsakis 2017-01-08 11:36:52 +00:00
rscope.rs rustc: move function arguments into hir::Body. 2016-12-28 11:29:19 +02:00