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
These sort of warnings can be distracting when commenting out a few
lines of code or demonstrating some other concept. They can be
re-enabled for a code block with `warnunused`.
I filed rust-lang/mdBook#2527 to get behavior
like this upstream.
Problem
In a short Rust snippet, it's common to include code which has warnings like
dead-code
orunused-variables
.In a non-editable snippet, these can be hidden with the hidelines support. However, in a runnable snippet, they always appear.
Proposed Solution
Add a new config:
and inject this string as a prefix to every playground run.
Notes
No response
The text was updated successfully, but these errors were encountered: