Skip to content

Invalid field is never read: lint warning #81658

Closed
@weiznich

Description

@weiznich

Code

Diesel CI begins to show warnings that some field is never read, while the field is actually read at some point.
For reference the field is read here via a ffi function.

I expected to see this happen: No warning shown as the field is read.
Instead, this happened: We've got a warning field is never read: input_binds``

Version it worked on

It most recently worked on: last stable/beta and nightlies from a few days back

Version with regression

cargo 1.51.0-nightly (c3abcfe8a 2021-01-25)

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions