about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@gmail.com>2021-10-23 11:40:46 +0200
committerIlya Yanok <ilya.yanok@gmail.com>2021-10-23 11:40:46 +0200
commit508fadab16ec36c57daa8f0361db60848d31c0f7 (patch)
tree89ccab1c65f13b87fe729e490d723e7300ad087d /compiler/rustc_codegen_llvm/src
parent3d71e749a244890cd370d49963e747cf92f4a037 (diff)
downloadrust-508fadab16ec36c57daa8f0361db60848d31c0f7.tar.gz
rust-508fadab16ec36c57daa8f0361db60848d31c0f7.zip
Update control_flow.rs
Fix and extent ControlFlow `traverse_inorder` example

1. The existing example compiles on its own, but any usage fails to be monomorphised and so doesn't compile. Fix that by using Fn trait instead of FnMut.
2. Added an example usage of `traverse_inorder` showing how we can terminate the traversal early.

Fixes #90063
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions