-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
don't build rust-analyzer-proc-macro-srv
on def config
#119124
Conversation
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
In config.toml we use `rust-analyzer-proc-macro-srv` for building `rust-analyzer-proc-macro-srv`, however, when we attempt to build it from the terminal, this cannot be used because we need to use the actual path, which is `proc-macro-srv-cli`. Remapping should end this confusion with improving the development experience. Signed-off-by: onur-ozkan <[email protected]>
(rustbot has picked a reviewer for you, use r? to override) |
.default_condition(builder.config.tools.as_ref().map_or(true, |tools| { | ||
tools | ||
.iter() | ||
.any(|tool| tool == "rust-analyzer" || tool == "rust-analyzer-proc-macro-srv") | ||
})) | ||
.default_condition( | ||
builder.config.extended | ||
&& builder.config.tools.as_ref().map_or(true, |tools| { | ||
tools.iter().any(|tool| { | ||
tool == "rust-analyzer" || tool == "rust-analyzer-proc-macro-srv" | ||
}) | ||
}), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe building this tool is necessary on the default configuration. Unlike rustdoc
, I think this should be compiled like any other tool; either by enabling in build.tools
or explicitly requesting it with x
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this reduces the build time on x build
around 15%.
@bors r+ |
@bors r- (I think it's worth to make a warning with change-tracker) |
Signed-off-by: onur-ozkan <[email protected]>
This PR modifies If appropriate, please update |
@bors r+ |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#118729 (Add release notes for 1.75.0) - rust-lang#119124 (don't build `rust-analyzer-proc-macro-srv` on def config ) - rust-lang#119154 (Simple modification of `non_lifetime_binders`'s diagnostic information to adapt to type binders) - rust-lang#119176 (Fix name error in aarch64_apple_watchos tier 3 target) - rust-lang#119182 (Update sysinfo version to 0.30.0) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#118729 (Add release notes for 1.75.0) - rust-lang#119124 (don't build `rust-analyzer-proc-macro-srv` on def config ) - rust-lang#119154 (Simple modification of `non_lifetime_binders`'s diagnostic information to adapt to type binders) - rust-lang#119176 (Fix name error in aarch64_apple_watchos tier 3 target) - rust-lang#119182 (Update sysinfo version to 0.30.0) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#119124 - onur-ozkan:help-118861, r=Mark-Simulacrum don't build `rust-analyzer-proc-macro-srv` on def config Should be very easy to understand when reviewing commit-by-commit. Blocker for rust-lang#118861
Should be very easy to understand when reviewing commit-by-commit.
Blocker for #118861