-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Code
Take any code that doesn't compile with multiple errors, then fix them one at a time, running the compiler between each fix.
Current output
When there are 3 errors left, the compiler says:
error: could not compile `crate` (lib test) due to 3 previous errors
When there are 2 errors left, the compiler says:
error: could not compile `crate` (lib test) due to 2 previous errors
When there is 1 error left, the compiler says:
error: could not compile `crate` (lib test) due to previous error
Desired output
When there's only 1 error left, I wish the number 1 appeared in the output so that it scans the same as the output when there's more than 1 error, so:
error: could not compile `crate` (lib test) due to 1 previous error
Rationale and extra context
When I'm in a cycle of quickly going between edit -> compile -> see how many errors there are to ensure I'm making forward progress and see how much work is left -> edit, my brain goes to the due to previous error
message looking for a digit. My brain also sees that there's clearly still error output, so it's saying "where's the count?!??! how many are left?!? what's going on?!?!" until my brain's flow is broken and it goes "oh right, this error message is different, there's 1 left".
It's a minor paper cut. Feel free to prioritize accordingly.
I'm using Rust stable 1.71.0.