Simplify Notification::RemovingComponent invocation #2012
Closed
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.
Fixes #1993.
After analyzing #1993 that led to #1283 & the source of #1639, the hypothesis is to simplify to just
Notification::RemovingComponent
invocation in "src/dist/manifestation.rs" and "src/dist/notification.rs", based on the understanding of the goal is to ultimately just display:By such simplification, also able to delete unneeded
RemovingOldComponent
code. Looking forward to review feedback & mentioning to update the PR, if my analysis or hypothesis is correctly.P.S: I also tried to understand this comment from the 1st comment in #1993:
https://github.com/rust-lang/rustup.rs/blob/489fa585117dc0ac283f247f3c9a829fd32442af/src/dist/manifestation.rs#L133
I'm speculating that the
altered
variable checks for default dist server, and guessing that when tests run, the local env would somehow be considered truthy for thealtered
flag to call originalRemovingOldComponent
to land to the output code for "info: removing old component", and the tests would pass/While running the "prod dist" build, the
altered
flag was considered falsy, and it would call the originalRemovingComponent
to land to the output code for "info: removing component".