Repository navigation
E0045 needs to be updated to new format #35501
Copy link
Copy link
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
Activity
- addedE-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.A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-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.
on Aug 8, 2016 I'd like to discus bonus part fix,
I've find out than function (FnDecl) with ellipsis doesn't contain span information about ellipsis.
I see three variants to solve it but each has some minus:- evaluate span position from FnDecl items, start take from last argument, end from result or decl span. minus - not exact match, may be some bugs in multiline cases.
- add ellipsis span information in to FnDecl. Minus - too big change for the issue
- add ellipsis as fn arg, need to fix another parts of compiler
May be you could provide better solution or help me choose one.
After playing with it, I think you're right. This seems like it would take updating how FnDecl handles variadic fns in a more robust way. This doesn't seem worth it, since this isn't really a fully supported feature (I think it's only for C interop?)
Fun to poke around and see what was available, though.
Yeah, let's mark this bonus as "not worth it, for now". We might come back to it later if more span information gets put in.
- added a commit that references this issue
on Aug 10, 2016
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.
From: src/test/compile-fail/E0045.rs
Error E0045 needs a span_label, updating it from:
To:
Bonus: Underline only the variadic part of the call.