about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2020-04-04 09:37:39 +0200
committerGitHub <noreply@github.com>2020-04-04 09:37:39 +0200
commite93f50cf0d5002c0c59e4c8d4ee22d0afef824ac (patch)
tree8de56439e4cbc03bec25c461ecdfcd96c94664d1 /src/doc/rustc-dev-guide
parent62ef95760ac3b0ccc6f58b31e94831415abbc45a (diff)
downloadrust-e93f50cf0d5002c0c59e4c8d4ee22d0afef824ac.tar.gz
rust-e93f50cf0d5002c0c59e4c8d4ee22d0afef824ac.zip
add pre-requisite for calling into compiler API (#663)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md b/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md
index 51d5cb6d30f..1749c9db413 100644
--- a/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md
+++ b/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md
@@ -4,6 +4,10 @@
 
 ## Getting the type of an expression
 
+NOTE: For the example to compile, you will need to first run the following:
+
+    rustup component add rustc-dev
+
 To get the type of an expression, use the `global_ctxt` to get a `TyCtxt`:
 
 ```rust