This commit is contained in:
Oliver Scherer 2018-11-05 12:59:19 +01:00 committed by Who? Me?!
parent 1dd3236827
commit 8e708929c3
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ fn generate_more_mir(&mut self, block: BasicBlock) -> BlockAnd<ResultType> {
}
```
When you invoke these functions, it is common to have a local variable `block` that is effectively a "cursor". It represents the point at which we are adding new MIR. When you invoke `generate_more_mir`, you want to update this cursor. You can do this manually, but it's tedious:
When you invoke these functions, it is common to have a local variable `block`
that is effectively a "cursor". It represents the point at which we are adding new MIR.
When you invoke `generate_more_mir`, you want to update this cursor.
You can do this manually, but it's tedious:
```rust
let mut block;