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

link: remove unused if check #132742

Closed
wants to merge 1 commit into from
Closed

Conversation

durin42
Copy link
Contributor

@durin42 durin42 commented Nov 7, 2024

The enclosing check already ensured we're on an is_like_solaris path, so this inner if will always be false. Inlined the local variable into its only use, but preserved the comment at the top of the block because it seems like it's still relevant.

I noticed this while sorting out a CI failure that ended up being identical to #132719.

cc @jieyouxu (author of #131405)
cc @albertlarsan68 (co-reviewed #131405)

@rustbot
Copy link
Collaborator

rustbot commented Nov 7, 2024

r? @fee1-dead

rustbot has assigned @fee1-dead.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 7, 2024
The enclosing check already ensured we're on an is_like_solaris path, so
this inner `if` will always be false. Inlined the local variable into
its only use, but preserved the comment at the top of the block because
it seems like it's still relevant.
@klensy
Copy link
Contributor

klensy commented Nov 7, 2024

Isn't outer is checks for target, while inner for host?

@durin42
Copy link
Contributor Author

durin42 commented Nov 7, 2024

shoot, you're right. Thanks!

@durin42 durin42 closed this Nov 7, 2024
@durin42 durin42 deleted the strip-cleanup branch November 7, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants