-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Closures can't be declared as diverging functions #1516
Comments
In HEAD, I get a different error, but it's still wrong:
This should compile. |
Changed the title to reflect what seems to be the problem now. |
I disagree with my past self about whether this should compile. Right now, in the AST, there's only one way to introduce a diverging function: by writing a I'm going to close this, but @brson or anyone else, please file an RFC if you feel strongly about it :-) |
Downgrade mutex_atomic to nursery See rust-lang#1516 and rust-lang#4295. There are suggestions about removing this lint from the default warned lints in both issues. Also, [`mutex_integer`](https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer) lint that has the same problems as this lint is in `nursery` group. changelog: Moved [`mutex_atomic`] to `nursery`
This looks inferrable.
The text was updated successfully, but these errors were encountered: