mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Depend on both crates individually
This commit is contained in:
parent
e6255356d2
commit
8969cbb22f
3 changed files with 7 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -52,9 +52,6 @@ name = "arbitrary"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "577b08a4acd7b99869f863c50011b01eb73424ccc798ecd996f2e24817adfca7"
|
checksum = "577b08a4acd7b99869f863c50011b01eb73424ccc798ecd996f2e24817adfca7"
|
||||||
dependencies = [
|
|
||||||
"derive_arbitrary",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arrayvec"
|
name = "arrayvec"
|
||||||
|
@ -157,6 +154,7 @@ name = "cfg"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arbitrary",
|
"arbitrary",
|
||||||
|
"derive_arbitrary",
|
||||||
"expect-test",
|
"expect-test",
|
||||||
"mbe",
|
"mbe",
|
||||||
"oorandom",
|
"oorandom",
|
||||||
|
|
|
@ -17,5 +17,9 @@ tt = { path = "../tt", version = "0.0.0" }
|
||||||
mbe = { path = "../mbe" }
|
mbe = { path = "../mbe" }
|
||||||
syntax = { path = "../syntax" }
|
syntax = { path = "../syntax" }
|
||||||
expect-test = "1.1"
|
expect-test = "1.1"
|
||||||
arbitrary = { version = "1", features = ["derive"] }
|
|
||||||
oorandom = "11"
|
oorandom = "11"
|
||||||
|
# We depend on both individually instead of using `features = ["derive"]` to microoptimize the
|
||||||
|
# build graph: if the feature was enabled, syn would be built early on in the graph if `smolstr`
|
||||||
|
# supports `arbitrary`. This way, we avoid feature unification.
|
||||||
|
arbitrary = "1"
|
||||||
|
derive_arbitrary = "1"
|
||||||
|
|
|
@ -50,7 +50,7 @@ impl fmt::Display for CfgAtom {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||||
#[cfg_attr(test, derive(arbitrary::Arbitrary))]
|
#[cfg_attr(test, derive(derive_arbitrary::Arbitrary))]
|
||||||
pub enum CfgExpr {
|
pub enum CfgExpr {
|
||||||
Invalid,
|
Invalid,
|
||||||
Atom(CfgAtom),
|
Atom(CfgAtom),
|
||||||
|
|
Loading…
Reference in a new issue