-
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
Update tool submodules, update feature unification strategy #52919
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cargo
updated
92 files
Submodule clippy
updated
from b0dabc to 8ef759
Submodule rls
updated
from 4c7cc9 to 0e8d1f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[package] | ||
name = "rustc-workspace-hack" | ||
version = "1.0.0" | ||
authors = ["Alex Crichton <[email protected]>"] | ||
license = 'MIT/Apache-2.0' | ||
description = """ | ||
Hack for the compiler's own build system | ||
""" | ||
|
||
[lib] | ||
path = "lib.rs" | ||
|
||
# For documentation about what this is and why in the world these dependencies | ||
# are appearing, see `README.md`. | ||
|
||
[build-dependencies] | ||
# Currently Cargo/RLS depend on `failure` which depends on `synstructure` which | ||
# enables this feature. Clippy, however, does not depend on anything that | ||
# enables this feature. Enable it unconditionally. | ||
syn = { version = "0.14", features = ['extra-traits'] } | ||
|
||
[target.'cfg(windows)'.dependencies.winapi] | ||
version = "0.3" | ||
features = [ | ||
"profileapi", | ||
"memoryapi", | ||
"minschannel", | ||
"securitybaseapi", | ||
"jobapi2", | ||
"schannel", | ||
"sysinfoapi", | ||
"jobapi", | ||
"synchapi", | ||
"wincrypt", | ||
"winbase", | ||
"minwinbase", | ||
"ntsecapi", | ||
"basetsd", | ||
"ntstatus", | ||
"psapi", | ||
"timezoneapi", | ||
"lmcons", | ||
"wincon", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# `rustc-workspace-hack` | ||
|
||
This crate is a bit of a hack to make workspaces in rustc work a bit better. | ||
The rationale for this existence is a bit subtle, but the general idea is that | ||
we want commands like `./x.py build src/tools/{rls,clippy,cargo}` to share as | ||
many dependencies as possible. | ||
|
||
Each invocation is a different invocation of Cargo, however. Each time Cargo | ||
runs a build it will re-resolve the dependency graph, notably selecting | ||
different features sometimes for each build. | ||
|
||
For example, let's say there's a very deep dependency like `num-traits` in each | ||
of these builds. For Cargo the `num-traits`'s `default` feature is turned off. | ||
In RLS, however, the `default` feature is turned. This means that building Cargo | ||
and then the RLS will actually build Cargo twice (as a transitive dependency | ||
changed). This is bad! | ||
|
||
The goal of this crate is to solve this problem and ensure that the resolved | ||
dependency graph for all of these tools is the same in the various subsets of | ||
each tool, notably enabling the same features of transitive dependencies. | ||
|
||
All tools vendored here depend on the `rustc-workspace-hack` crate on crates.io. | ||
When on crates.io this crate is an empty crate that is just a noop. We override | ||
it, however, in this workspace to this crate here, which means we can control | ||
crates in the dependency graph for each of these tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// intentionally left blank |
Submodule rustfmt
updated
from 69ad87 to d50e36
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.
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.
why is this turned back to crates.io? Don't we want to override with the local rustfmt?
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.
Oh that's because the RLS currently depends on
rustfmt-nightly
through crates.io