]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #40815 - estebank:issue-40006, r=GuillaumeGomez
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Wed, 5 Apr 2017 23:01:06 +0000 (23:01 +0000)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 23:01:06 +0000 (23:01 +0000)
Identify missing item category in `impl`s

```rust
struct S;
impl S {
    pub hello_method(&self) {
        println!("Hello");
    }
}
fn main() { S.hello_method(); }
```

```rust
error: missing `fn` for method declaration
 --> file.rs:3:4
  |
3 |     pub hello_method(&self) {
  |        ^ missing `fn`
```

Fix #40006. r? @pnkfelix CC @jonathandturner @GuillaumeGomez

1  2 
src/libsyntax/parse/parser.rs
src/libsyntax_pos/lib.rs

Simple merge
Simple merge