about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-09 10:29:56 +0100
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-11-09 19:17:49 -0600
commit4b26ea4b5040f00e55829a7fe1115e452e860e98 (patch)
tree0a056afff32231ec437077567ed2224c826d4bec /src/doc/rustc-dev-guide
parentdcb15af00489785aaf6ed6b2c04db168c5ba9860 (diff)
downloadrust-4b26ea4b5040f00e55829a7fe1115e452e860e98.tar.gz
rust-4b26ea4b5040f00e55829a7fe1115e452e860e98.zip
Don't try to build some example code snippets
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/mir/construction.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/mir/construction.md b/src/doc/rustc-dev-guide/src/mir/construction.md
index 314e0daa1fd..03e220cb459 100644
--- a/src/doc/rustc-dev-guide/src/mir/construction.md
+++ b/src/doc/rustc-dev-guide/src/mir/construction.md
@@ -45,7 +45,7 @@ First, if the function generates only statements, then it will take a
 basic block as argument onto which those statements should be appended.
 It can then return a result as normal:
 
-```rust
+```rust,ignore
 fn generate_some_mir(&mut self, block: BasicBlock) -> ResultType {
    ...
 }
@@ -58,7 +58,7 @@ In this case, the functions take a basic block where their code starts
 and return a (potentially) new basic block where the code generation ends.
 The `BlockAnd` type is used to represent this:
 
-```rust
+```rust,ignore
 fn generate_more_mir(&mut self, block: BasicBlock) -> BlockAnd<ResultType> {
     ...
 }
@@ -69,7 +69,7 @@ that is effectively a "cursor". It represents the point at which we are adding n
 When you invoke `generate_more_mir`, you want to update this cursor.
 You can do this manually, but it's tedious:
 
-```rust
+```rust,ignore
 let mut block;
 let v = match self.generate_more_mir(..) {
     BlockAnd { block: new_block, value: v } => {