From 1e19150d1eb6bd799e5d066adff83ce69df69e34 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 8 Mar 2021 17:28:52 +0000 Subject: [PATCH 1/2] Opt-in to rustc_private for `rust-analyzer` rust-analyzer/rust-analyzer#7891 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7580d140b55f..123594afe56c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,7 @@ libc = "0.2" compiletest_rs = { version = "0.5", features = ["tmp"] } rustc_version = "0.2.3" colored = "2" + +[package.metadata.rust-analyzer] +# This crate uses #[feature(rustc_private)] +rustc_private = true From 6106ee214c467450bd5b028e3cd64a675a710a6e Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Tue, 9 Mar 2021 18:27:22 +0000 Subject: [PATCH 2/2] Add link to pr for documentation --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 123594afe56c..5f9e93f2347b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,5 +42,6 @@ rustc_version = "0.2.3" colored = "2" [package.metadata.rust-analyzer] -# This crate uses #[feature(rustc_private)] +# This crate uses #[feature(rustc_private)]. +# See https://github.com/rust-analyzer/rust-analyzer/pull/7891 rustc_private = true