Skip to content

Conversation

@michaelgruenewald
Copy link
Contributor

@michaelgruenewald michaelgruenewald commented Nov 21, 2025

Since #21046 was merged, we're seeing execution errors in proc macros. We can trace this down to the new tool_path function that calls rust-up which. That in turn returns the correct path but (like all CLI tools) with a trailing newline. That newline makes it into various Env structures, which eventually causes issues. This PR fixes that by trimming off whitespace at the end of the output.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 21, 2025
Copy link
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

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

Thanks!

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Nov 21, 2025
Merged via the queue into rust-lang:master with commit 35c0661 Nov 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 21, 2025
@michaelgruenewald michaelgruenewald deleted the fix-tool-path branch November 21, 2025 17:55
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.

3 participants