Skip to content

Commit 727e5f1

Browse files
committed
Auto merge of #6869 - DJMcNab:rust-analyzer-private, r=phansch
Opt-in to rustc_private for `rust-analyzer` rust-lang/rust-analyzer#7891 changelog: none This will also help priroda and any other package which depends on the `miri` library crate.
2 parents 2cb5bbf + c4e2cf9 commit 727e5f1

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util" }
5656
deny-warnings = []
5757
integration = ["tempfile"]
5858
internal-lints = ["clippy_lints/internal-lints"]
59+
60+
[package.metadata.rust-analyzer]
61+
# This package uses #[feature(rustc_private)]
62+
rustc_private = true

clippy_lints/Cargo.toml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
"Manish Goregaokar <[email protected]>",
88
"Andre Bogus <[email protected]>",
99
"Georg Brandl <[email protected]>",
10-
"Martin Carton <[email protected]>"
10+
"Martin Carton <[email protected]>",
1111
]
1212
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
1313
repository = "https://github.com/rust-lang/rust-clippy"
@@ -29,14 +29,18 @@ smallvec = { version = "1", features = ["union"] }
2929
toml = "0.5.3"
3030
unicode-normalization = "0.1"
3131
semver = "0.11"
32-
rustc-semver="1.1.0"
32+
rustc-semver = "1.1.0"
3333
# NOTE: cargo requires serde feat in its url dep
3434
# see <https://github.com/rust-lang/rust/pull/63587#issuecomment-522343864>
35-
url = { version = "2.1.0", features = ["serde"] }
35+
url = { version = "2.1.0", features = ["serde"] }
3636
quote = "1"
3737
syn = { version = "1", features = ["full"] }
3838

3939
[features]
4040
deny-warnings = []
4141
# build clippy with internal lints enabled, off by default
4242
internal-lints = ["clippy_utils/internal-lints"]
43+
44+
[package.metadata.rust-analyzer]
45+
# This crate uses #[feature(rustc_private)]
46+
rustc_private = true

clippy_utils/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ rustc-semver="1.1.0"
1717

1818
[features]
1919
internal-lints = []
20+
21+
[package.metadata.rust-analyzer]
22+
# This crate uses #[feature(rustc_private)]
23+
rustc_private = true

0 commit comments

Comments
 (0)