about summary refs log tree commit diff
diff options
context:
space:
mode:
-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