-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple unused formatting argument notes should use multispan #37718
Comments
Hum indeed. If no one has taken it in 12 hours, I'll give it a look. |
@GuillaumeGomez I'm poking at it right now. I think I need to fix After all, I created the problem, I should probably fix it. :P |
Perfect. Good luck! :) |
Unused arguments are attached to the main error as labels. This drops the traditional named/positional message split (except in the case of a *single* unused argument) for "unused" in interest of terseness. Closes rust-lang#37718.
I believe this should be closed. |
Hold on, it seems the PR is still open. |
Seeing as there isn’t anyone working on this anymore, I’ll be happy to take over. This is my first issue, (woot), so I’m not exactly sure where to start. I assume I should just fork the repo, change Pinging @Nickforall and @DanielKeep in case you want to work on this still. |
@perryprog I am not working on this anymore. |
@perryprog Those steps may be correct; @GuillaumeGomez or someone else may be able to verify for you. You can also look at #41256 and #37729 which appear to be previous PRs which attempted to do this. Let us know if you'd like any help! |
@Mark-Simulacrum Awesome! I'm super excited. Anyone specific I should |
@perryprog bors will select someone automatically if you don't specify anyone, but I think any of me, @GuillaumeGomez, @Mark-Simulacrum, @jonathandturner or @nikomatsakis would be available for review and or guidance. |
For some reason I seem to be getting test errors unrelated to my changes. (ran |
Those tests shouldn't actually be running in |
Gotcha, it’s possible I copy pasted from the wrong command (on mobile can’t check right now), but I’ll use that command for testing and see if it works. I’m kinda busy for the rest of the week but I’ll keep working on it in my free time. I’ll comment here until I get a PR ready with any updates I have. |
Less verbose output for unused arguments Closes #37718 This is my first contribution to rust, so sorry if I'm missing anything! The output now looks like this: <img width="831" alt="screen shot 2017-07-18 at 5 01 32 pm" src="https://user-images.githubusercontent.com/12972285/28347566-dbfa9962-6c05-11e7-8730-c2e8062a04cc.png"> It's not the prettiest, but whenever #41850 gets resolved, this should be able to be improved. **EDIT:** This also does not seem r? @Mark-Simulacrum
After #37613, the output for
format!
errors looks like:that's a lot of lines dedicated to underlining macro acruments. They should all be output in one multispan.
cc @DanielKeep @estebank @jonathandturner @GuillaumeGomez
The text was updated successfully, but these errors were encountered: