-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
unused arguments vs borrowed pointers #3424
Comments
Somewhat related to #3423. |
Does compile and run if loader is turned into a named function. |
This is probably #2263. The fact that |
But I'm not sure, it's odd. I'll have to dig into this. |
I've also seen this error with anonymous functions that didn't have unused arguments. Worked around it by explicitly typing the anonymous function arguments taking borrowed pointers. |
This compiles for me, as of d2ad028 |
Deprecate `filter_map` Since rust-lang#6591, `filter_map` does not even lint `filter().map()`. The cases that are still linted make no sense IMO. So this just removes/deprecates it. changelog: Deprecate `filter_map` lint Closes rust-lang#3424 Fixes rust-lang#7050
Support EmitMode::ModifiedLines with stdin input
The test case below fails to compile, apparently because the borrow checker doesn't think an unused argument is (not) used safely.
The text was updated successfully, but these errors were encountered: