]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #40816 - estebank:issue-38321, r=nikomatsakis
authorCorey Farwell <coreyf@rwell.org>
Wed, 29 Mar 2017 20:53:31 +0000 (16:53 -0400)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2017 20:53:31 +0000 (16:53 -0400)
commit7f1083e741de0b210bb3eda4f17cffb0b470c3d2
tree00a092e4c808b06285033a2c8b7f723d0dce1016
parentea9c8b992c2155f3cb2e19dc0e7f65ce16158889
parent872d3bc0d713a85f2050f99d0cf33dd060318411
Rollup merge of #40816 - estebank:issue-38321, r=nikomatsakis

Clarify suggetion for field used as method

Instead of

```rust
error: no method named `src_addr` found for type `&wire::ipv4::Repr` in the current scope
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^
    |
note: did you mean to write `self.src_addr`?
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^
```

present

```rust
error: no method named `src_addr` found for type `&wire::ipv4::Repr` in the current scope
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^ field, not a method
    |
    = help: did you mean to write `self.src_addr` instead of `self.src_addr(...)`?
```

Fix #38321.