Update explnation about `Body.basic_blocks`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
6b2d30b2e5
commit
d8c874e31b
|
|
@ -65,8 +65,7 @@ See the [HIR chapter][hir-map] for more detailed information.
|
||||||
|
|
||||||
- [`BasicBlock`] identifies a *basic block*. It points to an instance of
|
- [`BasicBlock`] identifies a *basic block*. It points to an instance of
|
||||||
[`BasicBlockData`], which can be retrieved by indexing into
|
[`BasicBlockData`], which can be retrieved by indexing into
|
||||||
[`Body::basic_blocks()`] (note that you must call a function; the field is
|
[`Body.basic_blocks`].
|
||||||
private).
|
|
||||||
|
|
||||||
- [`Local`] identifies a local variable in a function. Its associated data is in
|
- [`Local`] identifies a local variable in a function. Its associated data is in
|
||||||
[`LocalDecl`], which can be retrieved by indexing into [`Body.local_decls`].
|
[`LocalDecl`], which can be retrieved by indexing into [`Body.local_decls`].
|
||||||
|
|
@ -93,7 +92,7 @@ See the [HIR chapter][hir-map] for more detailed information.
|
||||||
|
|
||||||
[`BasicBlock`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlock.html
|
[`BasicBlock`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlock.html
|
||||||
[`BasicBlockData`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlockData.html
|
[`BasicBlockData`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlockData.html
|
||||||
[`Body::basic_blocks()`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#method.basic_blocks
|
[`Body.basic_blocks`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.basic_blocks
|
||||||
[`Local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Local.html
|
[`Local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Local.html
|
||||||
[`LocalDecl`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.LocalDecl.html
|
[`LocalDecl`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.LocalDecl.html
|
||||||
[`Body.local_decls`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.local_decls
|
[`Body.local_decls`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.local_decls
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue