You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test-exercise: Detect Clippy failure by exit code, not by grep
The previous grep-based approach was too fragile:
On beta, Clippy isn't even installed.
Therefore, all attempts to run it simply show that Clippy wasn't
installed, without actually running Clippy.
This failure went completely undetected because the grep for `tests/`
isn't going to match that.
It's much less fragile to insert a `deny(clippy:all)` directive and let
the exit code speak.
As a side-effect, now Clippy *errors* for example solutions will cause
the CI to fail, whereas Clippy *warnings* in them will still be
accepted.
We can see this as a value-add, assuming that if Clippy defaults to
treating a particular lint as an error that it really should be fixed.
However this does require that some examples be fixed in this PR.
When merging this PR I plan to keep the commits separate, but will
remove the proof commit and its reversion before merging.
0 commit comments