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

Fix nightly dead_code warnings #1533

Merged
merged 1 commit into from
Oct 27, 2021
Merged

Fix nightly dead_code warnings #1533

merged 1 commit into from
Oct 27, 2021

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Oct 27, 2021

  • Remove unused fields for custom repository
  • Ignore warnings for deserialized errors. These are actually useful.

- Remove unused fields for custom repository
- Ignore warnings for deserialized errors. These are actually useful.
@@ -205,18 +205,21 @@ struct GraphResponse<T> {
}

#[derive(Debug, Deserialize)]
#[allow(dead_code)] // used by anyhow for error reporting; apparently the compiler isn't smart enough to tell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that issue doesn't look like it's going to be fixed any time soon. Are you ok with merging these for now?

Copy link
Member

@Nemo157 Nemo157 Oct 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think it's more a "intended fallout, won't fix" (though, in cases like this it is slightly plausible that rustc can see through the trait object cast and debug call to see that Debug is used).

@jyn514 jyn514 merged commit 7d6d917 into rust-lang:master Oct 27, 2021
@jyn514 jyn514 deleted the warnings branch October 27, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants