Skip to content

refactor(cli/self-update)!: reorganize InstallOpts methods#4950

Draft
rami3l wants to merge 6 commits into
rust-lang:mainfrom
rami3l:refactor/install-opts-cleanup
Draft

refactor(cli/self-update)!: reorganize InstallOpts methods#4950
rami3l wants to merge 6 commits into
rust-lang:mainfrom
rami3l:refactor/install-opts-cleanup

Conversation

@rami3l

@rami3l rami3l commented Jul 10, 2026

Copy link
Copy Markdown
Member

Comment thread src/cli/self_update.rs Outdated

#[cfg(not(windows))]
macro_rules! post_install_msg_unix {
() => {

@rami3l rami3l Jul 10, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Rust macros follow the buttom-up order so it contradicts with our top-down style guide. Should I move those macros up, or move the renamed method down to its original position?

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Finally I decided to move those messages templates in a new file to minimize the diff.

@rami3l rami3l requested a review from djc July 10, 2026 14:17
@rami3l rami3l force-pushed the refactor/install-opts-cleanup branch 5 times, most recently from cc981f1 to c85a63c Compare July 10, 2026 14:39
@rustbot

This comment has been minimized.

@rami3l rami3l force-pushed the refactor/install-opts-cleanup branch from c85a63c to de49ea3 Compare July 10, 2026 20:23
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