Skip to content

Conversation

@tamird
Copy link
Contributor

@tamird tamird commented Sep 18, 2023

Items which are marked pub are not considered by rustc's dead code
lints, allowing obvious bugs like the one fixed in 84cddf9.

This exposed the fact that PendingSnapshot.id is unused, so #[allow(dead_code)] is added to that field.

Copy link
Contributor

@marcospb19 marcospb19 left a comment

Choose a reason for hiding this comment

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

👍 I tested and it's working as expected.

@max-sixty
Copy link
Collaborator

Not a maintainer — but would it make sense to split off the visibility changes from the more urgent fix?

@marcospb19
Copy link
Contributor

It does make sense, but I wonder if it matters.

It's already separated in commits, so reviewing is easy.

@mitsuhiko
Copy link
Owner

I'm a bit confused here. The flag has been fixed on master already and the pull request contains hundreds of lines of unrelated changes.

@tamird
Copy link
Contributor Author

tamird commented Sep 18, 2023

@mitsuhiko I must've not pulled before sending this PR. The unrelated changes are explained in the commit message; I'll edit the PR description as these changes are the only changes now.

@tamird tamird changed the title cargo-insta: fix profile flag cargo-insta: reduce visibility of all items Sep 18, 2023
@mitsuhiko
Copy link
Owner

I'm not sure what the motivation is change the visibility here.

@tamird
Copy link
Contributor Author

tamird commented Sep 18, 2023

@mitsuhiko the motivation is explained in the commit message (and now in the PR description). Does that help?

Items which are marked pub are not considered by rustc's dead code
lints, allowing obvious bugs like the one fixed in 84cddf9.
Unclear if there's a purpose for this field, but it is never read.
@mitsuhiko mitsuhiko merged commit bee0ff4 into mitsuhiko:master Sep 18, 2023
@mitsuhiko
Copy link
Owner

Makes sense. Merged.

@tamird tamird deleted the fix-insta-profile branch September 18, 2023 20:06
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.

4 participants