Skip to content

Commit 6569862

Browse files
oli-obkmark-i-m
authored andcommitted
Don't try to build some example code snippets
1 parent ce79098 commit 6569862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mir/construction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ First, if the function generates only statements, then it will take a
4545
basic block as argument onto which those statements should be appended.
4646
It can then return a result as normal:
4747

48-
```rust
48+
```rust,ignore
4949
fn generate_some_mir(&mut self, block: BasicBlock) -> ResultType {
5050
...
5151
}
@@ -58,7 +58,7 @@ In this case, the functions take a basic block where their code starts
5858
and return a (potentially) new basic block where the code generation ends.
5959
The `BlockAnd` type is used to represent this:
6060

61-
```rust
61+
```rust,ignore
6262
fn generate_more_mir(&mut self, block: BasicBlock) -> BlockAnd<ResultType> {
6363
...
6464
}
@@ -69,7 +69,7 @@ that is effectively a "cursor". It represents the point at which we are adding n
6969
When you invoke `generate_more_mir`, you want to update this cursor.
7070
You can do this manually, but it's tedious:
7171

72-
```rust
72+
```rust,ignore
7373
let mut block;
7474
let v = match self.generate_more_mir(..) {
7575
BlockAnd { block: new_block, value: v } => {

0 commit comments

Comments
 (0)