-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Lint: empty_loop lint on no_std
#3746
Labels
A-lint
Area: New lints
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Comments
oli-obk
added
the
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
label
Feb 13, 2019
This can probably be implemented by checking if any of the attributes in |
@therealprof Is this related to the fact clippy complains about
|
@eddyp Precisely. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lint
Area: New lints
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
In embedded (or no_std) scenarios it is very common to use empty loops in diverging functions such as the
#[entry]
function or panic handlers. Yet when using clippy we always have to work around theempty_loop
lint. Is there a way to disable this lint forno_std
applications where it does actually make sense to have it?The text was updated successfully, but these errors were encountered: