Auto merge of #41136 - estebank:multiline, r=jonathandturner
Always show end line of multiline annotations
```rust
error[E0046]: not all trait items implemented, missing: `Item`
--> $DIR/issue-23729.rs:20:9
|
20 | impl Iterator for Recurrence {
| _________^ starting here...
21 | | //~^ ERROR E0046
22 | | //~| NOTE missing `Item` in implementation
23 | | //~| NOTE `Item` from trait: `type Item;`
... |
36 | | }
37 | | }
| |_________^ ...ending here: missing `Item` in implementation
|
= note: `Item` from trait: `type Item;`
```
instead of
```rust
error[E0046]: not all trait items implemented, missing: `Item`
--> $DIR/issue-23729.rs:20:9
|
20 | impl Iterator for Recurrence {
| ^ missing `Item` in implementation
|
= note: `Item` from trait: `type Item;`
```
This commit is contained in:
commit
ad36c2f552
6 changed files with 269 additions and 97 deletions
|
|
@ -24,8 +24,7 @@ error[E0046]: not all trait items implemented, missing: `bar`
|
|||
23 | | //~^ ERROR E0046
|
||||
24 | | //~| NOTE missing `bar` in implementation
|
||||
25 | | const bar: u64 = 1;
|
||||
26 | | //~^ ERROR E0323
|
||||
27 | | //~| NOTE does not match trait
|
||||
... |
|
||||
28 | | const MY_CONST: u32 = 1;
|
||||
29 | | }
|
||||
| |_^ ...ending here: missing `bar` in implementation
|
||||
|
|
@ -50,8 +49,7 @@ error[E0046]: not all trait items implemented, missing: `MY_CONST`
|
|||
34 | | //~^ ERROR E0046
|
||||
35 | | //~| NOTE missing `MY_CONST` in implementation
|
||||
36 | | fn bar(&self) {}
|
||||
37 | | fn MY_CONST() {}
|
||||
38 | | //~^ ERROR E0324
|
||||
... |
|
||||
39 | | //~| NOTE does not match trait
|
||||
40 | | }
|
||||
| |_^ ...ending here: missing `MY_CONST` in implementation
|
||||
|
|
@ -76,8 +74,7 @@ error[E0046]: not all trait items implemented, missing: `bar`
|
|||
45 | | //~^ ERROR E0046
|
||||
46 | | //~| NOTE missing `bar` in implementation
|
||||
47 | | type bar = u64;
|
||||
48 | | //~^ ERROR E0325
|
||||
49 | | //~| NOTE does not match trait
|
||||
... |
|
||||
50 | | const MY_CONST: u32 = 1;
|
||||
51 | | }
|
||||
| |_^ ...ending here: missing `bar` in implementation
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
error[E0046]: not all trait items implemented, missing: `Item`
|
||||
--> $DIR/issue-23729.rs:20:9
|
||||
|
|
||||
20 | impl Iterator for Recurrence {
|
||||
| ^ missing `Item` in implementation
|
||||
20 | impl Iterator for Recurrence {
|
||||
| _________^ starting here...
|
||||
21 | | //~^ ERROR E0046
|
||||
22 | | //~| NOTE missing `Item` in implementation
|
||||
23 | | //~| NOTE `Item` from trait: `type Item;`
|
||||
... |
|
||||
36 | | }
|
||||
37 | | }
|
||||
| |_________^ ...ending here: missing `Item` in implementation
|
||||
|
|
||||
= note: `Item` from trait: `type Item;`
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ error[E0046]: not all trait items implemented, missing: `Output`
|
|||
37 | | //~^ ERROR E0046
|
||||
38 | | //~| NOTE missing `Output` in implementation
|
||||
39 | | //~| NOTE `Output` from trait: `type Output;`
|
||||
40 | | extern "rust-call" fn call_once(self, (comp,): (C,)) -> Prototype {
|
||||
41 | | Fn::call(&self, (comp,))
|
||||
... |
|
||||
42 | | }
|
||||
43 | | }
|
||||
| |_^ ...ending here: missing `Output` in implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue