about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-03-23 10:15:45 +0900
committerGitHub <noreply@github.com>2021-03-23 10:15:45 +0900
commit263c85875cb3aceced6cc712961234fc61d71cba (patch)
treeef88985b7237c4b6f77c27e17e9fbce5577d29f1 /src
parent2e14c1dc0cbed6358e0e5c356e48c6d709305efc (diff)
parent34635ec10eb30d7977b8b9d4c683a8e976b52455 (diff)
downloadrust-263c85875cb3aceced6cc712961234fc61d71cba.tar.gz
rust-263c85875cb3aceced6cc712961234fc61d71cba.zip
Rollup merge of #83389 - njasm:test_rustdoc, r=jyn514
add rust-analyzer rustc_private option in librustdoc Cargo.toml

This addition will allow to have code completion while hacking rustdoc with rust-analyzer.

more info: https://rust-analyzer.github.io/manual.html#rust-analyzer.rustcSource

r? `@jyn514`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/Cargo.toml b/src/librustdoc/Cargo.toml
index 2d0722396fc..eb38adb0b73 100644
--- a/src/librustdoc/Cargo.toml
+++ b/src/librustdoc/Cargo.toml
@@ -29,3 +29,6 @@ features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"]
 
 [dev-dependencies]
 expect-test = "1.0"
+
+[package.metadata.rust-analyzer]
+rustc_private = true