-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
From: src/test/compile-fail/E0025.rs
E0025 needs span_label instead of span_note, changing it from:
error[E0025]: field `a` bound multiple times in the pattern
--> src/test/compile-fail/E0025.rs:18:21
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ^^^^
|
note: field `a` previously bound here
--> src/test/compile-fail/E0025.rs:18:15
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ^^^^
To:
error[E0025]: field `a` bound multiple times in the pattern
--> src/test/compile-fail/E0025.rs:18:21
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ---- ^^^^ multiple uses of `a` in pattern
| |
| first use of `a`
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.