We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd9b99 commit c9e4816Copy full SHA for c9e4816
src/librustc/mir/mod.rs
@@ -262,6 +262,12 @@ impl<'tcx> Body<'tcx> {
262
dominators(self)
263
}
264
265
+ /// Returns `true` if a cycle exists in the control-flow graph that is reachable from the
266
+ /// `START_BLOCK`.
267
+ pub fn is_cfg_cyclic(&self) -> bool {
268
+ graph::is_cyclic(self)
269
+ }
270
+
271
#[inline]
272
pub fn local_kind(&self, local: Local) -> LocalKind {
273
let index = local.as_usize();
0 commit comments