diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-09 10:29:56 +0100 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2018-11-09 19:17:49 -0600 |
| commit | 4b26ea4b5040f00e55829a7fe1115e452e860e98 (patch) | |
| tree | 0a056afff32231ec437077567ed2224c826d4bec /src/doc/rustc-dev-guide | |
| parent | dcb15af00489785aaf6ed6b2c04db168c5ba9860 (diff) | |
| download | rust-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.md | 6 |
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 } => { |
