Skip to content
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

FN in boxed_local lint #4642

Open
flip1995 opened this issue Oct 8, 2019 · 0 comments
Open

FN in boxed_local lint #4642

flip1995 opened this issue Oct 8, 2019 · 0 comments
Labels
C-bug Category: Clippy is not doing the correct thing C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages I-false-negative Issue: The lint should have been triggered on code, but wasn't

Comments

@flip1995
Copy link
Member

flip1995 commented Oct 8, 2019

This FN was introduced by the rustup #4628. To fix this major changes to the lint are probably necessary (#4628 (comment)).

A test for this FN already exists here:

fn closure_borrow(x: Box<A>) {
let _ = || {
borrow(&x);
};
}

Originally posted by @flip1995 in #4628

@flip1995 flip1995 added C-bug Category: Clippy is not doing the correct thing C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages labels Oct 8, 2019
@phansch phansch added the I-false-negative Issue: The lint should have been triggered on code, but wasn't label Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages I-false-negative Issue: The lint should have been triggered on code, but wasn't
Projects
None yet
Development

No branches or pull requests

2 participants