-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
create symlink for legacy rustfmt path #107834
Conversation
…nk for legacy rustfmt path
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @albertlarsan68 (or someone else) soon. Please see the contribution instructions for more information. |
Just a note, but if you add something like "Fixes #107547" in the opening comment then GitHub will automatically link the issue such that it will be automatically closed when this PR is merged. See the GitHub documentation. |
@ChrisDenton Didn't know that! Thanks so much😁 |
|
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#107446 (Migrate some of `rustc_parse` to derive diagnostics) - rust-lang#107752 (Specify dlltool prefix when generating import libs) - rust-lang#107808 (bootstrap.py: fix build-failure message) - rust-lang#107834 (create symlink for legacy rustfmt path) - rust-lang#107835 (use idiomatic formatting) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
@bors r- @zephaniahong have you tested locally that |
Yupp! Seemed to work for me. |
@zephaniahong @albertlarsan68
|
I think it's ok to just not try and make this symlink on windows; the rustfmt symlink won't work anyway because it'll fail to load rustc_driver. |
Should I edit the code to not make a symlink if it's a windows machine? |
Yes please; you can use |
…lbertlarsan68 create symlink only for non-windows operating systems Follow up on rust-lang#107834 It's my first time using the #cfg attribute. Did I use it correctly? Thank you!
Revert rust-lang#107834 This reverts commit [41c6c5d](rust-lang#107834). Trying to check if this fixes building `rustc` for perf bot.
Fixes #107547 .
Main change is in the
download.rs
file. Created a symlink for the legacy rustfmt path to the new rustfmt path. Other file changes are simply as a result of porting over the symlink_file function from the Build struct to the config Struct