]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #35355 - shri3k:E0046, r=jonathandturner
authorJonathan Turner <jonathandturner@users.noreply.github.com>
Sun, 7 Aug 2016 16:59:40 +0000 (09:59 -0700)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2016 16:59:40 +0000 (09:59 -0700)
Updates compiler error E0046 with new format

Addresses #35209 as part of #35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))
```

1  2 
src/librustc_typeck/check/mod.rs
src/test/compile-fail/impl-wrong-item-for-trait.rs

Simple merge
index 6452e50d0893ea9b3bc44ea22f1857eeb435b0c0,348c6765c1a8f42f4a369005e35f6a05ead18646..e0ea1a4cac58bb83102cacf447fb478961897928
@@@ -21,9 -19,9 +21,10 @@@ pub struct FooConstForMethod
  
  impl Foo for FooConstForMethod {
      //~^ ERROR E0046
+     //~| NOTE missing `bar` in implementation
      const bar: u64 = 1;
      //~^ ERROR E0323
 +    //~| NOTE does not match trait
      const MY_CONST: u32 = 1;
  }
  
@@@ -41,9 -39,9 +43,10 @@@ pub struct FooTypeForMethod
  
  impl Foo for FooTypeForMethod {
      //~^ ERROR E0046
+     //~| NOTE missing `bar` in implementation
      type bar = u64;
      //~^ ERROR E0325
 +    //~| NOTE does not match trait
      const MY_CONST: u32 = 1;
  }