Repository navigation
fix(transfer): name drop_devices in the server-flag classification guard - #7319
Merged
Merged
Conversation
ParsedServerFlags gained a drop_devices field, but the exhaustive destructure in every_parsed_server_flags_field_is_classified never named it, so the crate failed to build under --all-targets with E0027. Both changes were green in isolation and red together: the guard is a cfg(test) drift check, so only a build that compiles tests sees it. Classify it under "neither mechanism": there is no compact letter and no apply_common_server_flags bridge entry. Unlike its neighbours that is not an open question - the option is deliberately client-local, which is what makes the emitted argv byte-identical. The server decodes --drop-D only so a restricted shell can inject it.
oferchen
enabled auto-merge (squash)
August 14, 2026 05:06
This was referenced Aug 14, 2026
Merged
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ard (#7319) ParsedServerFlags gained a drop_devices field, but the exhaustive destructure in every_parsed_server_flags_field_is_classified never named it, so the crate failed to build under --all-targets with E0027. Both changes were green in isolation and red together: the guard is a cfg(test) drift check, so only a build that compiles tests sees it. Classify it under "neither mechanism": there is no compact letter and no apply_common_server_flags bridge entry. Unlike its neighbours that is not an open question - the option is deliberately client-local, which is what makes the emitted argv byte-identical. The server decodes --drop-D only so a restricted shell can inject it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ParsedServerFlagsgained adrop_devicesfield, but the exhaustive destructure inevery_parsed_server_flags_field_is_classifiednever named it. That is a hardE0027, socrates/transferfails to build under--all-targetsand every open PR shows a redfmt + clippy.Reproduced on pristine
origin/master(490134fc1), not on a feature branch. Both contributing changes were green in isolation and red together — a stale-base merge-compile collision. The guard iscfg(test), so only a build that compiles tests sees it; a plaincargo buildstays green, which is why it reached master.Non-vacuity proven both directions on
490134fc1:Why this group
drop_devicesgoes under "⚠ NEITHER MECHANISM": no compact letter, andapply_common_server_flagsdoes not carry it (verified — no match incrates/core/src/client/remote/flags.rs).Unlike its neighbours, that is not an open question needing a decision. The option is deliberately client-local: no client path emits
--drop-Dinto the argv, which is exactly what made the argv byte-identical. The server decodes--drop-Donly so a restricted shell can inject it, upstream'srrsyncbeing the case that forces it. The comment says so, since the group's existing text would otherwise imply an unresolved gap.The exhaustive pattern is a drift guard working as designed — it refused to let a new field be added without classifying how it reaches the server.